$con=mysqli_connect(....stuff.....);
Here is the main part:
$sql2="INSERT INTO keys
(id,forgotkey)
VALUES
( '1' , '3453' ) ";
if(!$result2=mysqli_query($con,$sql2)){
echo mysqli_error($con);
}
I get 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 'keys(id,forgotkey) VALUES ( '1' , '3453' )' at line 1