我已經傾注了這一點,無法找到可能導致錯誤的原因。有什麼建議麼?在INSERT上獲取MySQL錯誤代碼1064
$sql = "INSERT INTO users (`id`, `username`, `password`, `firstname`,
`lastname`, `photo`, `mobile`, `fax`, `bday`, `homeadd`, `city`,
`state`, `zip`, `mailingadd`, `altfax`, `altphone`, `email`,
`emailpass`, `website`, `bio`, `designations`, `photo2`, `type`,
`confirmed_email`, `registered_on`, `disabled`, `admin_disabled`)
VALUES (NULL, $username, MD5('$password'), $firstname, $lastname,
'', 'test', '', '', '', '', '', '', '', '', '', $email, '', '', '', '',
'', 'agent', '1', NOW(), $disabled, 0)";`
重構你的代碼請給我們完整的錯誤信息。 –