i just want to ask how can i query a certain record in php?

Nintendo Drive

New member
please help because im creating a php shopping cart program that uses a session variable. my question is how can i make a query from a given output like this when i make an echo statement:
input: 1,3,5
O/P
SELECT * FROM tbl_products WHERE id = '1';
SELECT * FROM tbl_products WHERE id = '3';
SELECT * FROM tbl_products WHERE id = '5';

please help.
 
Back
Top