php code to Mysql result all



function mysql_result_all($result) {
$nrow = 0;
echo("

\n");
for($i = 0; $i < mysql_num_fields($result); $i++) echo("\n");
echo("\n");
while($row = mysql_fetch_array($result)) {
echo("");
for($i = 0; $i < mysql_num_fields($result); $i++) echo("\n");
echo("\n");
$nrow++;
}
echo("
Row".mysql_field_name($result, $i)."
$nrow$row[$i]
\n");
}



PHP Free Code

Posted in |