<?php
function display_db_query($query_string, $connection, $header_bool, $table_params)
print("<table $table_params>\n");
if ($header_bool)
{
for($column_num=0; $column_num<$column_count; $column_num++)
{$field_name=mysql_field_name($result_id,$column_num); //tutaj jest funkcja której szukasz podłącz swoją bazę itabelę print("<th>$field_name</th>"); //na podstawie książki php4 }
} }
//******************************************************
function display_db_table($tablename, $connection, $header_bool, $table_params)
{
$query_string="select * from $tablename";
display_db_query($query_string, $connection, $header_bool, $table_params);
}
?>
<html><head><title> celbarowicz</title></head>
<body>
<?php display_db_table("tabela_3",$global_dbh, true,"border=2"); ?>
</body></html>
resztę dopisz sam