how to make links like <previous 1|2|3|4|5|6|7 next>?
Posted: Sun Oct 15, 2006 6:26 pm
I need to make links like "1|2|3|4|5|..."
I believe you've ever seen this kind of stuff in google or
any other blogs.
I made a diary like blog by php.
but i already posted more than 10 diaries.
so i need to make links like google or any other blogs...
otherwise the page is too long and looks not good.
but unfortunately i have no idea how to make it.
If you know. please teach me how or give me some hints.
Thanks in adavance.
I believe you've ever seen this kind of stuff in google or
any other blogs.
I made a diary like blog by php.
but i already posted more than 10 diaries.
so i need to make links like google or any other blogs...
otherwise the page is too long and looks not good.
but unfortunately i have no idea how to make it.
If you know. please teach me how or give me some hints.
Code: Select all
include "conf/conf.php";
$myConn=mysql_connect($host,$uname,$pword);
$mydb=mysql_select_db($dbname,$myConn);
$sql="select * from p_news";
$rs=mysql_query($sql,$myConn);
$num_rows=mysql_num_rows($rs);
for($i=0;$i<=$num_rows-1;$i++)
{
$row=mysql_fetch_array($rs);
// Do i need to code some IF statements here?
}Thanks in adavance.