I am using the code below to display the content of my table named (data)
Your Page Title
$database="ac_au";
mysql_connect ("localhost", "aci_au", "abcd");
@mysql_select_db($database) or die( "Unable to select database");
$result = mysql_query( "SELECT * FROM data" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
print "There are $num_rows records.
";
print "
\n";
while ($get_info = mysql_fetch_row($result)){
print "\n";
foreach ($get_info as $field)
print "\t$field | \n";
print "
\n";
}
print "
\n";
?>
I am not to good at php, but can anyone provide me with help regarding the same?
the code works fine, it displays what i want.. but now i wanted to display only 10 rows on one page and my table contains (400 rows)
i want to have a navigation option !
2007-11-08
20:37:44
·
4 answers
·
asked by
legna
2