I am having a problem opening my website in Xampp. I need to access my website offline, so I installed Xampp but when I try to open my website via indes.php, I get this error...
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Xampp\htdocs\wafukusite\library\database.php:4 Stack trace: #0 C:\Xampp\htdocs\wafukusite\library\config.php(65): require_once() #1 C:\Xampp\htdocs\wafukusite\index.php(2): require_once('C:\\Xampp\\htdocs...') #2 {main} thrown in C:\Xampp\htdocs\wafukusite\library\database.php on line 4
This is line 4 of database.php
- Code: Select all
$dbConn = mysql_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' . mysql_error());
I was sure I had the host $dbHost (which is localhost), user $dbUser and password $dbPass correct in the config.php file but I now wonder if I haven't.
I am way, way out of my depth here, I don't know php, sql or much else but I have to do this by myself, so I have to muddle through. What I would like to know is how to check in Xampp what my host, user and password are ($dbHost, $dbUser, $dbPass), to be sure I have that correct in the config.php file. Where and how in Xampp do I check that? Please remember I am a total novice, so explanations have to be very clear and full, please don't presume I have any knowledge in this matter, because I am afraid I don't.
I would be so grateful for some help with this.
Thank you.
C