if(!isset($_GET['start'])){
$_GET['start'] = "undefined";
}
$start=$_GET['start'];// To take care global variable if OFF
if(!($start > 0)) { // This variable is set to zero for the first page
$start = 0;
}
$startpos = ($start -0);
$limit = 1;
// No of records to be shown per page.
$currentpos = $startpos + $limit;
$back = $startpos - $limit;
$next = $startpos + $limit;
$countquery=" SELECT * FROM quiz ";
$countresult=mysql_query($countquery);
echo mysql_error();
$totalrecords=mysql_num_rows($countresult);
//$quiz_table = mysql_query("select * from quiz Limit 1");
?>
| "; ///////////// If we are not in the last page then Next link will be displayed. Here we check that ///// if($currentpos < $totalrecords) { } ?> |

Logz Mca4 reputationPosted Feb 19, 2013, 9:48 PM EST