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 $myInt = 0; foreach($row as $cell){ if($myInt == 4){ echo ''; } else { echo ""; } $myInt++; } echo "\n"; } mysql_free_result($result); ?>
{$field->name}
$cell