I have the following script to create links pages in my directory.
It shows all the links in one category on the same page.
I want to break this to show 25 links on one page and the number of pages to show in the bottom. Maximum 20 numbers to show at a time.
db_connect();
$cs=de_code_url($c);
$cs=str_replace("\"","%22",$cs);
$cs=str_replace("’","%27",$cs);
$result=mysql_query(“SELECT * FROM link_data WHERE category=’$cs’ AND status =‘approved’ ORDER BY id DESC”);
while($row=mysql_fetch_array($result))
{
$url=$row[“url”];
$description=$row[“description”];
$title=$row[“title”];
$description=str_replace("%22",""",$description);
$title=str_replace("%22",""",$title);
$description=str_replace("%27","’",$description);
$title=str_replace("%27","’",$title);
print “
$title
$description
}
db_close();
Please anyone help.