I am new to php programming and I need help paginating a page. I have tried different codes I have found online, yet I have had no luck. Can someone please help me??? Here is the core of my source code.
mysql_connect("$host", “$username”, “$password”)or die(“cannot connect”);
mysql_select_db("$db_name")or die(“cannot select DB”);
$sql=“SELECT * FROM $tbl_name ORDER BY year DESC, month DESC, day DESC”;
$num_rows = mysql_num_rows($result);
<? echo $rows['month']; ?>/<? echo $rows['day']; ?>/<? echo $rows['year']; ?>