我想創建一個數據庫的新行插入到一個PHP腳本,但經過數小時後,我收到了「語法錯誤,意外的T_LNUMBER」的錯誤。我知道,當它到達「37bf7a30-b6cf-4642-89c9-031c1f6c34d0」字符串時,它將它擰緊。我試圖把報價和雙引號放在那裏,但沒有任何工作。你知道任何工作可能會幫助我。非常感謝,併爲我的糟糕英語和混亂的代碼感到遺憾。Mysql意外T_LNUMBER
mysql_query("INSERT INTO `bbdb_item` (`id`, `application_id`, `type`, `name`, `alias`, `created`, `modified`, `modified_by`, `publish_up`, `publish_down`, `priority`, `hits`, `state`, `access`, `created_by`, `created_by_alias`, `searchable`, `elements`, `params`)
VALUES ('$id',
'1',
'item',
'$name',
'$alias',
'$date',
'$date',
'42',
'$date',
'0000-00-00 00:00:00',
'0',
'0',
'1',
'1',
'42',
'',
'1',
' {\n
"37bf7a30-b6cf-4642-89c9-031c1f6c34d0": {\n "0": {\n "value": "http:\\/\\/www.xxxx.com\\/item\\/$id\\/overview.aspx",\n "text": "",\n "target": "0",\n "custom_title": "",\n "rel": ""\n }\n },\n
"d3d4559f-24eb-46b2-a749-068ebd3eceb3": {\n "0": {\n "value": "$id"\n }\n },\n
"0e366b7c-514a-4a37-b651-e6fe8edf78ff": {\n "0": {\n "value": "$country"\n }\n },\n
' {\n
"metadata.title": "",\n
"metadata.description": "",\n
"metadata.keywords": "",\n
"metadata.robots": "",\n
"metadata.author": "",\n
"config.enable_comments": "1",\n
"config.primary_category": "1"\n}')"
)