Re: php signup form with image upload
Posted: Fri Jul 10, 2015 3:45 pm
Can you post the entire file? The line numbers in the errors don't make any sense given the code you've posted.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
That's pretty straightforward: there's already a user with that username in the DB. That's because you're executing the same query twiceMySQL error no 1062 : Duplicate entry 'ianhaney' for key 'username'
Code: Select all
$result = $mysqli->query($sql);
if ($mysqli->query($sql)) {