I'm trying to update a email field in Mysql through php.
i keep getting this error: 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 '@yahoo.com,
The cell in Mysql is varchar(100). The e-mail addres is typed in from a text box.
$insert_fbacc="UPDATE jos_users SET email=".$_POST['email']", WHERE id='$user->id'";
önceki kodla, mysql güncellemeleri e-posta adresi sadece yarısı, sadece @yahoo.com parçasıdır.
i dize $ _POST ['email'] dönüştürmek için çalıştı ve sonuç yazdığım hatadır.
EDIT:
Teşekkürler çocuklar, harikasın!
Ben ... kötü sözdizimi ne öğrendim ve kaçmak için unuttum.
Thanks a lot!