Hello
I have a problem with a site on my server.
The following error code sends me the error Fatal error: Calling the undefined function mysql_connect ()
<?php
$enlace = mysql_connect('localhost', 'user_mysql', 'pass_mysql');
if (!$enlace) {
die('No pudo conectarse: ' . mysql_error());
}
echo 'Conectado satisfactoriamente';
mysql_close($enlace);
?>
On the server I have Apache 4 and the site where this is running has PHP 5.4 also enabled php54-php-mysqlnd extension
He also tested with the mysqli_connect statement with the same result
Here is the link to the phpinfo site [Removed]
I have a problem with a site on my server.
The following error code sends me the error Fatal error: Calling the undefined function mysql_connect ()
<?php
$enlace = mysql_connect('localhost', 'user_mysql', 'pass_mysql');
if (!$enlace) {
die('No pudo conectarse: ' . mysql_error());
}
echo 'Conectado satisfactoriamente';
mysql_close($enlace);
?>
On the server I have Apache 4 and the site where this is running has PHP 5.4 also enabled php54-php-mysqlnd extension
He also tested with the mysqli_connect statement with the same result
Here is the link to the phpinfo site [Removed]