evening all, i have an issue with a syntax sql error
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where username = danny (name, url, banner, description, sponsor, date, password)' at line 1
Here is my code
$query = "UPDATE websites where username = $login_session (name, url, banner, description, sponsor, date, password) VALUES ('$n', '$b', '$d', '0', now(), SHA('$p'))";
That's because your
UPDATE
statement syntax is wrong. Check MySQL documentation for proper UPDATE syntax. I think you meant to do aINSERT
ratherEDIT:
I think this is what you are after