i am doing register.php and i am completely stuck on this, i have tried everything i could but still getting fatal errors. I have attached the errors i get when trying to register a new user. and here are the line 24 of my code

enter image description hereenter image description here

2 Answers 2


The error message "Unknown column 'name' in 'field list'" should be fairly self-explanatory. Just in case it's not immediately obvious to you, try opening a Terminal and typing the following commands:

mysql50 shell
USE pset7;
DESCRIBE `users`;

By the way, if this answers your question, please accept it by clicking on the green check mark. Otherwise, it will forever haunt the forums as a zombie unanswered question.


What I got to know by your screenshot and code is that the column name is either misspelt in the database table and in the code or you have created one and trying to insert data into it. Else make sure you are saving the Name and the Last_Name int the $_POST[] array.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .