PHP - MySQL query with Pagination

后端 未结 3 1471
北荒
北荒 2020-12-20 00:10

How would I go about making a pagination script for this MySQL & PHP query.

if (isset($_GET[\'c\'])) {
$c = $_GET[\'c\'];
}

$query = mysql_query(\"SELEC         


        
3条回答
  •  攒了一身酷
    2020-12-20 00:19

    //database connation
    
    
    enter code here
    
        View Student Details
        

    Student Details

    query($q); $j=0; while($data=$result->fetch_array()) { $j=$j+1; ?>
    Sr.No. Student ID Student Name Class Gender Birth of Date Contact No. Action
      query($q); $data=$result->fetch_array(); $total=$data[0]; $total_page=ceil($total/10); if($total_page>1) { for($i=1;$i<=$total_page;$i++) { ?>

提交回复
热议问题