par
Pinkies » 15 nov. 2018, 13:37
je possède un site crée en php 5.2 et depuis le passage en 7.2, il m'envoie ce code d'erreur au démarrage:
Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /customers/c/4/b/pinkies.be/httpd.www/Connections/GWSE1.php:9 Stack trace: #0 /customers/c/4/b/pinkies.be/httpd.www/index.php(1): require_once() #1 {main} thrown in /customers/c/4/b/pinkies.be/httpd.www/Connections/GWSE1.php on line 9
voici le fichier qui cause problème:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_GWSE1 = "localhost";
$database_GWSE1 = "pinkies_be";
$username_GWSE1 = "pinkies_be";
$password_GWSE1 = "y4Q9iJtB";
$GWSE1 = mysql_pconnect($hostname_GWSE1, $username_GWSE1, $password_GWSE1) or trigger_error(mysql_error(),E_USER_ERROR);
?>
ce serait la dernière ligne qui pose problème. J'ai déjà modifié le mysql en mysqli_connect mais cela donne tjs la même erreur.
Qq pourrait il me dépanner.
Un grand merci d'avance.
je possède un site crée en php 5.2 et depuis le passage en 7.2, il m'envoie ce code d'erreur au démarrage:
Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /customers/c/4/b/pinkies.be/httpd.www/Connections/GWSE1.php:9 Stack trace: #0 /customers/c/4/b/pinkies.be/httpd.www/index.php(1): require_once() #1 {main} thrown in /customers/c/4/b/pinkies.be/httpd.www/Connections/GWSE1.php on line 9
voici le fichier qui cause problème:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_GWSE1 = "localhost";
$database_GWSE1 = "pinkies_be";
$username_GWSE1 = "pinkies_be";
$password_GWSE1 = "y4Q9iJtB";
$GWSE1 = mysql_pconnect($hostname_GWSE1, $username_GWSE1, $password_GWSE1) or trigger_error(mysql_error(),E_USER_ERROR);
?>
ce serait la dernière ligne qui pose problème. J'ai déjà modifié le mysql en mysqli_connect mais cela donne tjs la même erreur.
Qq pourrait il me dépanner.
Un grand merci d'avance.