#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a','a','a','a','a','desc')' at line 1
我的查詢是#1064 - 您的SQL語法錯誤;
mysql_query("insert into
room_booking(name,address,type,roomNo,arrival,arrivaldate,departure,
departuredate,identity,email,adult,children,contact,
extraroom,laundry,parking,spa,tennis,swimming,description)
values('$nm','$add','$typ','$roomno','$arrv','$arrivaldate',
'$departure','$dDate','$idt','$emailid','$adul','$child',
'$cont','$extra,'100','100','100','100','100','$desc')");
有人可以提出一個解決方案嗎? –
'...... t','$ extra,'100','1 ...'< - 注意'$ extra'後缺少''''。儘管如此,你應該_really_閱讀SQL注入和不推薦使用的'mysql_ *'API。 –
謝謝Joachim Isaksson ... –