I'm trying to modify the ID value of a link which looks something like this:
<a href="my_article.php?id=<?php echo $row_Recordset1['id']; ?>">Previous</a>
That pulls the id value in the URL which it's supposed to do. But say I wanted to create a variable that is one value less than the 'id' value. I've tried this:
<?php $previousid = id - 1; echo $row_Recordset1['previousid']; ?>
What's wrong with that function? Is there a better way to do this?
Thanks!