<!doctype html>
Pagination <?php $con=mysql_connect("localhost","root",""); mysql_select_db("paging",$con); $res=("select * from paging"); if($res === FALSE) { die(mysql_error()); // TODO: better error handling } while($row=mysql_fetch_array($res)) { echo $row["id"]," ", $row["name"]; echo ""; } ?>