This is creating a "Parse error: parse error, unexpected $ in /home/twisted/www/www/view.php on line 60"
Line 60 is the end of the php file, this bit here is the last bit of code manipulation in the page(ie, '</html>'), and the portion that's erroring out.
<a href="view.php?id=1">First</a>
<a href="view.php?id=
<?if($row[id]<2){
echo '1';
}else {
echo $row[id]-1?>">Previous</a>
<a href="view.php?id=<?echo $row[id]+1?>">Next </a>
[code=php]
Instead should I create a temporary id variable and manipulate that before creating my html link, or is there an easy way to do this that I just don't know about?
Any help would be appreciated.