Jump to content

[SOLVED] PHP inserting SQL


plznty

Recommended Posts

if ( $_GET['view'] == process )
{
mysql_query("INSERT INTO users 
(id, username, password, money, current, rank, secretquestion, secretanswer) VALUES('', '$POST_[user]', '$POST_[pass]', '$POST_[cash]', '0' 'noob', '$POST_[question]','$POST_[answer]' ) ") 
or die(mysql_error());  

echo "User Created!";
}

 

Once i submit stuff it comes out as

 

Column count doesn't match value count at row 1

Link to comment
https://forums.phpfreaks.com/topic/160324-solved-php-inserting-sql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.