各位前輩與先進大家好~
想請教大家一個問題,我的程式碼如下:
if ($operation == 'Update')
{
$query1 = "UPDATE need SET Need_Quantity = '$Need_Quantity',
Need_Valid ='$Need_Valid' WHERE Serial_number = '$Serial_number'";
$query2 = "INSERT INTO orderform_table(Serial_Number,Order_Date) VALUES ('1','2016-11-11')" ;
$query = $query1.$query2;
}
如何將query1與query2兩項指令正確的結合?
或是我的PHP字串結合方式有問題?
還請各位前輩與先進指點指點~~
感謝!