thanks for your help all, although i do not quite understand as im a bit of a nooB :rolleyes:
My query is as follows
$query = mysql_query("select * from article
where id = '$row'");
This displays all the data for my article. If i wish the user to navigate to the previouse article i have a previous / next button
as you have seen
<a href="view_article.php?id=<?php $previousarticle=($row-1);
echo $previousarticle;?>">previous</a>
<a href="view_article.php?car=<?php $nextarticle=($row+1);
echo $nextarticle;?>">next </a>
yes id is auto increment, but i dont think that has anything to do with my problem
problem is, if i am viewing article C, i deleted article B so if i press the previous link i want it to go to article A and not B $row-1 seems to be an incorrect command