Hi all i found this code in the book, but it only display the value, i need to show the field with the value. how to go abt changing the code? i know have to do with => or ->.
tks.
$result = mysql_query(“SELECT* FROM tb2”);
$num_field = mysql_num_fields($result);
print “There are $num_row in the table<p>”;
print "<table border=1>
";
while($a_row = mysql_fetch_row($result)){
print "<tr>
";
foreach($a_row as $field))
print " <td>$field</td>
";
print "</tr>
";
}
print "</table>
"