Search
 
SCRIPT & CODE EXAMPLE
 

PHP

call to undefined function mysql_connect()

Try checking to see if the PHP MySQL extension module is being loaded:

<?php
    phpinfo();
?>

If it's not there, add the following to the php.ini file:

extension=php_mysql.dll

Save and Restart You Apache HTTP Server
Comment

Call to undefined function mysql_connect()

In case, you are using PHP7 already, the formerly deprecated functions
mysql_* were removed entirely, so you should update your code using the
PDO-functions or mysqli_* functions instead.

If that's not possible, as a workaround, rubo77 created a small PHP include
file, that recreates the old mysql_* functions with mysqli_*()-functions:
https://github.com/rubo77/php-mysql-fix
Comment

PREVIOUS NEXT
Code Example
Php :: php sql last 10 rows 
Php :: websocket 2006 MySQL server has gone away 
Php :: pathtophp in ubuntu lampp 
Php :: get the last inserted id using laravel eloquent 
Php :: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; 
Php :: add new column to table laravel 
Php :: php str_replace multiple 
Php :: wp get post thumbnail 
Php :: encryp with codeigniter 3 
Php :: php return loading message 
Php :: how to increase request timeout in laravel 
Php :: run a server php with a specific folder terminal 
Php :: php access json object 
Php :: cut out the beginning of the text in php 
Php :: php redirect to page 
Php :: php convert number to month 
Php :: install ext-ldap php 7.2 
Php :: php date month italian 
Php :: php force image refresh 
Php :: concat in laravel 8 
Php :: path to php cli moodle in moodle 
Php :: create new laravel project cmd 
Php :: wordpress throw to debug.log 
Php :: show selected value in dropdown laravel 
Php :: upppercase php 
Php :: php check if url parameter exists 
Php :: Target class [FruitcakeCorsHandleCors] does not exist. 
Php :: set image asset path in laravel 
Php :: change php version in vagrant 
Php :: time zone set in codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =