I'm fairly new to php and I cant figure out the right syntax to do this correctly.
This code outputs the values in the array:
foreach($_SESSION['list'] as $key => $value)
{
echo($value).", ";
}
Output example:
14, 11, 13, 15
How would I get the outputs into the query:
"SELECT * FROM listings WHERE listing_id = "
Thanks