A couple of things:
- Your are using the variable
$password but I can't see anywhere above that code that actuallys assigns a value to that variable. You are assigning your query to a variable but not actually running the query anywhere, you don't need a blank space for the id and you should indicate the columns you are inserting into. Try your query as
mysql_select_db("phplogin");//select database
mysql_query ("
INSERT INTO users (fullname, username, password, date) VALUES('$fullname','$username','$password','$date')
");
ALso, remove the die - that should be used for database erors only.
simplypixie
Practically a Master Poster
642 posts since Oct 2010
Reputation Points: 157
Solved Threads: 118
Skill Endorsements: 5