From a5736fc53f8e33c67c8db4e8cafb9909287f732a Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Wed, 16 Dec 2009 02:18:38 +0000 Subject: [PATCH] added db.php - it's to show whose paid to have "powered by" taken off git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@703 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/db.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 site/db.php diff --git a/site/db.php b/site/db.php new file mode 100644 index 00000000..15aff275 --- /dev/null +++ b/site/db.php @@ -0,0 +1,48 @@ +Database +Table: {$table}"; +echo ""; +// printing table headers +for($i=0; $i<$fields_num; $i++) +{ + $field = mysql_fetch_field($result); + echo ""; +} +echo "\n"; +// printing table rows +while($row = mysql_fetch_row($result)) +{ + echo ""; + + // $row is array... foreach( .. ) puts every element + // of $row to $cell variable + foreach($row as $cell) + echo ""; + + echo "\n"; +} +mysql_free_result($result); +?> + + \ No newline at end of file
{$field->name}
$cell