<?php if(//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>XML Database Parser</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <h1>XML Database Parser</h1> <div style="float: right;"> <iframe name="goalWin"></iframe> </div> '); } mysql_connect("tornado","mwg400","48458749") or die ("Kan niet connecten."); tabellen = mysql_list_tables( "mwg400-dbs"); mysql_select_db("mwg400-dbs") or die ("Verdorie, kan de database niet openen"); if(date = date("d-m-Y, H:i:s",now = mktime(); echo '<?xml version="1.0" encoding="iso-8859-1" ?>'; /* echo '<?xml-stylesheet type="text/xsl" href="style.xsl"?>'; */ echo "<document> <author>S. Bankras</author> <date>".</date> <table>"._GET['table']."</table> <description></description> "; _GET['table']); while (result)) { echo "<item>\n"; foreach(key => key)){ value); if(key.">".key.">\n"; } } } echo "</item>\n"; } print("</document>\n"); } else { /* Tellertje en loop om de tabellen te tonen. */ echo "<fieldset><legend><b>List of all tables in the database</b></legend>"; i < mysql_num_rows(t_name[tabellen, <a target='goalWin' href='getdb.php?table=".t_name[t_name[</a><br />\n"; i++; } echo "</fieldset>"; mysql_free_result (_GET['table']){ ?> <hr /> Created for MMC2007 <div> <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </div> </body> </html> <?php } function strip(text = str_replace("–", "-",text = str_replace("â", "NULL",text = str_replace("Â", "NULL",text = htmlentities(text; } ?>
(C) A. Eliƫns 2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.