Incrementing through mysql PHP
- by Rawdon
I am looking at try to increment and decrement by three records through a table and present those records. Say if the id '4' is currently active. I want the to be display the ID's and category of 3.2.1 and 5.6.7 from an increment and decrement
So far I have:
$stmt = $db->query("SELECT id, category FROM test");
$stmt->execute();
while…