Reputation: 31
Okay I know this question has been asked multiple times but sadly, I was still unable to fix the problem.
When trying to run this simple script:
<?php
mysql_connect('localhost','root','');
?>
I get the error mentioned in the title.
Info:
-I am using XAMPP
-There is a folder named mysql in my XAMPP folder
-I put this line on my php.ini: extension=php_mysql.dll
and there already was: extension=php_pdo_mysql.dll
-I am using Widnows.
Any help would be greatly appreciated
Upvotes: 1
Views: 101
Reputation:
If you are using php7, mysql_* functions are removed as they are deprecated use mysqli_* instead.
Here is a link you can use http://php.net/manual/en/function.mysqli-connect.php
Upvotes: 2