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
in
Computers & Internet
➔ Programming & Design
can anyone realy provide me a solution? to the code i am using, what and where should i add? if the code can be modified and given i would really be thankful... the codes in every article confuse me as am not into php. if sum1 modifies the code am using to work with pagination. i can study it :) thanx a lot
2007-11-09
15:19:38 ·
update #1