我正在尝试进行查询!我在这里有这个查询:
$data = mysql_query( "SELECT date, time,location,type_of_payment,
basket_information, user_id FROM retailer")
我也有这个变量:
$getuser[0]['user_id']
我需要设置一个子句,但我在编写查询时遇到了困难。有人可以帮我编辑吗?
$data = mysql_query( "SELECT date, time,location,type_of_payment,
basket_information, user_id FROM retailer
WHERE user_id = $getuser[0]['user_id']")
谢谢..