Jump to content
Larry Ullman's Book Forums

mina1234

Members
  • Posts

    2
  • Joined

  • Last visited

mina1234's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
  2. 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 directory My 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
×
×
  • Create New...