Jump to content

[SOLVED] Array and IN ()


jaymc

Recommended Posts

2: when using mysql IN(), for example WHERE id IN(1,2,3,4) if number 4 is the first id in the table, that will be the first returned when using the likes of mysql_fetch_assoc

 

How can I get mysql to return the results in the order I specify in the IN() clause, so in the case above rows 1,2,3,4

 

Edit: Can this be moved to MYSQL I answered my php question after posting so edited it out

Link to comment
https://forums.phpfreaks.com/topic/103367-solved-array-and-in/
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.