All pastes #425242 Raw Edit

Something

public php v1 · immutable
·published 2007-04-05 11:19 UTC
rendered paste body
for ($i=0; $i < $num_tables; $i++) {         //echo("<center><h2>Table $arr_tablenames[$i] </h2></center>");         echo('<br><br><table align="center" border="1"><tr>');         $result = mysql_db_query($dbname, "select * from $arr_tablenames[$i]", $id_link);         for ($ii=0; $ii < $arr_num_fields[$i]; $ii++) {             echo("<th>");             echo $hash_field_names[$i][$ii];             echo("</th>");         }         echo("</tr><tr>");         $number_of_rows = @mysql_num_rows($result);         for ($iii = 0; $iii < $number_of_rows; $iii++) {             $record = @mysql_fetch_row($result);             for ($ii=0; $ii < $arr_num_fields[$i]; $ii++) {                 echo("<td><center>");                 echo $record[$ii];                 echo("</center></td>");             }         echo("</tr>");         }         echo("</table>");     }