I'm feeling so stupid at the moment, but what's the best way to get MySQL to show lets say 3 records.
Example: I want to show record ID 5, 22 and 87 in on go.
Sure I can do a query loop on each record like this
Code:
$query_rsFiles = "SELECT * FROM products WHERE `ID` = '$the_ID'";
or get MySQL to do a query on all records , and when the ID is 5 or 22 or 87 are up to show the data, but this looks like a long and not proper way to do it.
Anyone here who might know the correct way of doing this?
Once again.. Sorry for asking this... I know.. I should know things like this.
Recent comments
7 hours 27 min ago
12 hours 20 min ago
21 hours 12 min ago
22 hours 12 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 6 hours ago
1 day 14 hours ago
1 day 22 hours ago
2 days 30 min ago