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