I am trying to get a query work!
I have this query right here:
$data = mysql_query( "SELECT date, time,location,type_of_payment,
basket_information, user_id FROM retailer")
I have this variable also:
$getuser[0]['user_id']
I need to set a clause, but i have difficulties in the way of writing the query. Can someone help me editing it please?
$data = mysql_query( "SELECT date, time,location,type_of_payment,
basket_information, user_id FROM retailer
WHERE user_id = $getuser[0]['user_id']")
Thanks..
And, you should really use
PDOormysqliinstead ofmysql.