WanknessHD Hardcore Habboer Jun 13, 2011 48 5 Jan 6, 2017 #1 ("SELECT id,name FROM ranks WHERE id < 7 ORDER BY id DESC") I would like to grab rows 3-7 only. How could I do that? @Elijah
("SELECT id,name FROM ranks WHERE id < 7 ORDER BY id DESC") I would like to grab rows 3-7 only. How could I do that? @Elijah
Elijah <?php die($you); Mar 2, 2013 12 6 Jan 6, 2017 #2 You can do something like "SELECT id,name FROM ranks WHERE id < 7 AND id > 3 ORDER BY id DESC" That should help Upvote 0 Downvote
You can do something like "SELECT id,name FROM ranks WHERE id < 7 AND id > 3 ORDER BY id DESC" That should help
WanknessHD Hardcore Habboer Jun 13, 2011 48 5 Jan 6, 2017 Thread starter #3 That would make sense, I tried ("SELECT id,name FROM ranks WHERE id < 7 > 3 ORDER BY id DESC") But that broke the page lmao, I dont know too much SQL Thanks man it worked, means a lot! Upvote 0 Downvote
That would make sense, I tried ("SELECT id,name FROM ranks WHERE id < 7 > 3 ORDER BY id DESC") But that broke the page lmao, I dont know too much SQL Thanks man it worked, means a lot!
Elijah <?php die($you); Mar 2, 2013 12 6 Jan 6, 2017 #4 WanknessHD said: That would make sense, I tried ("SELECT id,name FROM ranks WHERE id < 7 > 3 ORDER BY id DESC") But that broke the page lmao, I dont know too much SQL Click to expand... Yeah, you need to add the AND. It will check each operator, so you can't do < 7 > 3. edit: No prob Upvote 0 Downvote
WanknessHD said: That would make sense, I tried ("SELECT id,name FROM ranks WHERE id < 7 > 3 ORDER BY id DESC") But that broke the page lmao, I dont know too much SQL Click to expand... Yeah, you need to add the AND. It will check each operator, so you can't do < 7 > 3. edit: No prob