Previous, next

admin

Administrator
Staff member
Hi!
I know this question has been asked befor, but I am a total newbee and I磛e realy tried to understand the article written about this without getting it right. Could someone please help me?
This is my code today:
<?php
$connect=@mysql_connect("localhost","user","");
$databas=mysql_select_db("dbname");
$sql="SELECT * FROM table1
where category='cat1'";
$resultat=mysql_query("$sql");
while($rad=mysql_fetch_array($result)) {
?><font size="1" face="verdana,arial">
<?=$rad["field1"]?><br>
<?}
mysql_close($connect);
?>

Now I want it to be next and previous-links if there is more than 10 posts in the table.
If anyone could help me with a working script I would be soooo happy!

//Jessica
 
Back
Top