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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -