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
1 day 16 hours ago
2 days 1 hour ago
2 days 4 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 8 hours ago
2 days 9 hours ago
2 days 11 hours ago
3 days 3 hours ago
3 days 3 hours ago