I feel like I have lost my marbles!
I cannot seem to work out how to achieve this very simple goal!
select order_id from sd_statusalert where status_id=2
Returns me 2 id numbers, I would like my PHP to add these together then I can use them in another select. for example
Result
1234
5678
turn into 1234,5678
I'm using this at the moment but it's treating each row as separately.
while ($Get_the_Orders_row = mysql_fetch_row($Get_the_Orders))
{
$aa = $Get_the_Orders_row[0];
echo $aa;
}
How can I have my code take the two results add them together into one variable so I can use that result for another query?
thanks