Jump to content

How to show records from a specific ID


ins-coder

Recommended Posts


[b]MySQL[/b]

+----+
| id |
+----+
| 1  |
+----+
| 2  |
+----+
| 3  |
+----+
| 4  |
+----+
+----+
| 5  |
+----+

 

How do I show records from a specific ID so the list would show 2,3,4,5 or 3,4,5?

 

I figured to do with two queries in UNION but end up showing 2,1,3,4,5 or 2,5,4,3,1. :(

Link to comment
https://forums.phpfreaks.com/topic/263518-how-to-show-records-from-a-specific-id/
Share on other sites

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.