topical media & game development
professional-web-01-v2-watch.php / php
<?php
global HTTP_RAW_POST_DATA))
HTTP_RAW_POST_DATA;
dom = new DOMDocument();
HTTP_RAW_POST_DATA);
if (!xml = simplexml_import_dom(xml->children() as element['escaped'] = sqlite_escape_string(trim(xml->asXML();
db->query(
"SELECT symbol from watches where symbol='".
req = "";
if (req="update watches set ";
xml->tag['escaped']."', ";
xml->title['escaped']."', ";
xml->description['escaped']."' ";
xml->symbol['escaped']."'";
} else {
req .= "'".req .= "'".req .= "'".req .= "'".req;
req);
echo "<ok/>";
}
function displayOne(xml = simplexml_load_string("<watch><symbol/><tag/><title/><description/></watch>");
row['symbol'];
row['tag'];
row['title'];
row['description'];
printAsFragment(db=openDb();
db);
if (query->fetch(SQLITE_ASSOC)) {
displayOne(xml = simplexml_load_string("<watch/>");
printAsFragment(db=openDb();
echo "<watches>";
db);
while (query->fetch(SQLITE_ASSOC)) {
displayOne(HTTP_RAW_POST_DATA)>0) {
write();
} else if (
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.