Error when connecting to database

I am trying to learn the basic of php oop from mmtuts and have been following this tutorial…

However, when running the codes, I get these errors:

Notice: Use of undefined constant result - assumed ‘result’ in C:\xampp\htdocs\mmtuts\includes\user.php on line 11

Warning: mysqli_result::fetch_assoc() expects exactly 0 parameters, 1 given in C:\xampp\htdocs\mmtuts\includes\user.php on line 11

Notice: Undefined variable: data in C:\xampp\htdocs\mmtuts\includes\user.php on line 15

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\mmtuts\includes\viewuser.php on line 8

Sorry guys… It was my mistake… I made an error with one of my codes

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.