Cannot make the programs work
Hi,
Thanks for the code. However, I'm getting this message on the homepage:
Notice: Undefined variable: hostname in C:\xampp\htdocs\inventory\db.php on line 6
ERROR: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
Notice: Undefined variable: conn in C:\xampp\htdocs\inventory\index.php on line 78
Fatal error: Call to a member function prepare() on a non-object in C:\xampp\htdocs\inventory\index.php on line 78
Thanks for your help.