0
兩個列>>支付 - order_num1
表2
兩個列>> order_num2
我想要得到從值和
update paid(insert paid = 1) in table one with same order_num value
如果order_num1=order_num2
然後paid = 1
在表1
$q = mysql_query("select order_num2 from table2 where samevalue = samevalue ");
$x = mysql_fetch_row($q);
mysql_query("update table1 set paid=1 where order_num1='$x['order_num2']'");
但它不工作! 首先從一個表和更新從另一個表付費,如果order_num
具有相同的價值得到
我試過,但我認爲它不夠清晰,以幫助您 – nicowernli
其中table1.column = table2.column ? –
請澄清你的問題,我不明白 –