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
22 hours 2 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
2 days 3 hours ago
2 days 5 hours ago