mina1234
-
Posts
2 -
Joined
-
Last visited
Posts posted by mina1234
-
-
I created the database and the tables and started to run the application to see how it works and have better understanding of how the code works, but I received this error:
An error occurred in script 'C:\XAMPP\htdocs\discounts\html\register.php' on line 16:
require(/path/to/dir/mysql.inc.php): failed to open stream: No such file or directoryMy guess is I should replace this code require (MYSQL); with something else because this code is in line 16.
I tried to move this file mysql.inc.php to the includes folder and then use this following code instead : include('./includes/mysql.inc.php');
But it did not work
I see that this require (MYSQL); exist in many places, so I need to know how to handle that.
If anyone can help, it will be really appreciated.
Thanks
Mina
Chapter 11, Page 316 - Adding Products
in Effortless E-Commerce with PHP and MySQL
Posted
I have question. When I run the register.php page , I keep receiving this error:
An error occurred in script 'C:\XAMPP\htdocs\discounts\html\includes\mysql.inc.php' on line 18:
mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)
Anyone can help please