Using this function to dump a table, having a problem outputting the value
below after the SELECT * FROM $ID.
function dump($ID, $link) {
echo "<font class=\"txt\">Dumped table <b>$ID</b></font><table
border=\"1\"><tr>";
$fields = mysql_list_fields("hyrum_nuke", $ID, $link);
$columns = mysql_num_fields($fields);
for ($i = 0; $i < $columns; $i++) {
echo "\t<th>". mysql_field_name($fields, $i) . "</th>\n";
}
echo "</tr>";
$query = mysql_query("SELECT * FROM $ID;");
while ($line = mysql_fetch_array($query)) {
while ($value = each($line)){
$value = ereg_replace("<", "<", $value);
$value = ereg_replace(">", ">", $value);
echo "<td valign=\"top\"><pre>$value</pre></td>";
}
}
echo "</table>";
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]