PHP MySQL insert not working -
sorry if it's quite simple problem. not experienced web languages.
basically, doesn't work.
$insert= ( "insert phpbb_members ". "(emailaddress, uid, valid, firstandlast, propic, membername) ". "values ($me['email'], $uid, 1, $me['name'], $propic, $newuser)" ); mysql_query($insert) or die('error, insert query failed');
i think problem may in way you've laid out information inserted.
this should work:
$insert=("insert phpbb_members (emailaddress, uid, valid, firstandlast, propic, membername) values ('$me[email]', '$uid', '1', '$me[name]', '$propic', '$newuser')"); mysql_query($insert) or die('error, insert query failed');
hope helps!
edit: i'm pretty sure information inserted has inside ' '
.
Comments
Post a Comment