The query should be a call to $obj1->query() ($obj1 was instantiated on like 114 as a database object) instead.
Additionally, the data being inserted is not being properly escaped. This will cause problems with names like O'Casey, and can lead to database damage should a hacker enter bad information into the fields.
Finally, the code is not checking to see if the query succeeded or not. When it failed, no message is produced.
\LMS\admin\create_user.php at lines 140-142 has the following code:
The query should be a call to $obj1->query() ($obj1 was instantiated on like 114 as a database object) instead.
Additionally, the data being inserted is not being properly escaped. This will cause problems with names like O'Casey, and can lead to database damage should a hacker enter bad information into the fields.
Finally, the code is not checking to see if the query succeeded or not. When it failed, no message is produced.