Hello,
I am having a php problem and I looked all over the internet and different search engines for the answer... I have already posted this a long time ago but now it is edited.
Note: My connection to the database is stable
__________________________________________________ ___________
$query = ("INSERT INTO users (firstname, lastname, username, password, email, date, rank, status, key) VALUES('$first', '$last', '$username', '$password', '$email', '$date', '$rank', '$status', '$key')");
if (!mysql_query($query, $con)) {
die('ERROR: ' . mysql_error());
}
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻ
I have rewritten an old code and seem to be having a problem writing data to my database. I receive this error
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 'key) VALUES ('Matt', 'Pomeranz', 'Phoubers', 'password' at line 1
I am having a php problem and I looked all over the internet and different search engines for the answer... I have already posted this a long time ago but now it is edited.
Note: My connection to the database is stable
__________________________________________________ ___________
$query = ("INSERT INTO users (firstname, lastname, username, password, email, date, rank, status, key) VALUES('$first', '$last', '$username', '$password', '$email', '$date', '$rank', '$status', '$key')");
if (!mysql_query($query, $con)) {
die('ERROR: ' . mysql_error());
}
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻ
I have rewritten an old code and seem to be having a problem writing data to my database. I receive this error
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 'key) VALUES ('Matt', 'Pomeranz', 'Phoubers', 'password' at line 1
Comment