This is my code:
$query="SELECT * from project where batch='$bach'" or die(mysql_error());
$var=mysql_query($query) or die(mysql_error());
if(mysql_num_rows($var)==0)
{
echo "No such batch exist.<br />";
}
while($arr=mysql_fetch_row($var))
{
echo $arr['batch'];
}
I am just displaying one field right now thats batch but there are 8 columns and many rows would be filled when user inputs the data.. This code will display the content on the same page making the page quite long. How can i split the data into various pages with html and php? A better example can be google which splits the search results into pages and with page numbers at the bottom.