I'm sorry, but i have a problem on my website when i want to create any account. My error is :
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'guid' at row 1'
And my code is :
$db->query('INSERT INTO accounts (guid, account, pass, level, vip, email, lastIP, question, reponse, pseudo) VALUES ("", "'.$account.'", "'.$pass1.'", "0", "0", "'.$mail.'", "'.$ip.'", "'.$question.'", "'.$reponse.'", "'.$pseudo.'")');
Please help me... Thank you so much, Stackoverflowers :D !
guid
) – Alon Eitanguid
from column name and remove it's corresponding first""
from values. because i think that field isprimary key
andauto-incremented
– Anant Kumar Singh