Why do I keep getting the following error:
And here is the code:
I have the extension enabled:
So what's wrong?
| Code: |
| Fatal error: Call to undefined function mysql_connect() in c:\host\files\zportal\includes\db_connect.php on line 4 |
And here is the code:
| Code: |
| <?php
if (defined("IN_PORTAL")) { include(PROOT."config.php"); $connect = mysql_connect($dbhost,$dbuser,$dbpass)or die("Error with MySQL"); $db = mysql_select_db($dbname,$connect)or die("Error with MySQL"); } else { die("Hacking Attempt"); } ?> |
I have the extension enabled:
| Code: |
| extension=php_ming.dll
;extension=php_mssql.dll ;extension=php_msql.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_openssl.dll |
So what's wrong?
