Jump to content

Annoying Error.


MDCode

Recommended Posts

I've been trying to debug this code for an hour now. :facewall:

 

Returns the following 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 'group,email,verified,redirect) VALUES ( 'Bob', 'Bobly', 'Admin', '6efe0def62d76' at line 1

 

<?php
$sql = "INSERT INTO `users` (firstname,lastname,username,password,group,email,verified,redirect) VALUES (
'$first',
'$last',
'$user',
'$pass',
'Member',
'$email',
'$verified',
'$redirect')";
?>

 

Anyone see what's wrong?

Link to comment
https://forums.phpfreaks.com/topic/271698-annoying-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.