Jump to content

[SOLVED] Query problems


solon

Recommended Posts

maybe you can clarify but if i am reading this correctly you could do something like this:

 

$id = 3
$id = $id -1

$query = "SELECT * FROM table WHERE id='$id'";

 

All that basically does is take id and change it from 3 to 2 so it just changes it to the row before if that is what you are talking about. if not please clarify.

Only by making another call to the database.

 

Say your list is sorted and you have record 72. In your sorted list that may be the 41st in the list.

 

Just run another query on the database pulling the previous record out by what you have - if that makes sense.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.