T5824
-
26 sept. 2020 à 01:28
jordane45
Messages postés38452Date d'inscriptionmercredi 22 octobre 2003StatutModérateurDernière intervention12 mars 2025
-
26 sept. 2020 à 08:41
Bonjour,ce code marche au niveau local parfaitement mais quand je l'ai essayé sur l'hebergeur webhost je reçois ces erreurs :
Warning: mysqli::__construct() expects parameter 5 to be integer, string given in /storage/ssd3/899/14630899/public_html/db1.php on line 3 Warning: mysqli::prepare(): Couldn't fetch mysqli in /storage/ssd3/899/14630899/public_html/docpfe.php on line 70
Fatal error: Uncaught Error: Call to a member function execute() on null in /storage/ssd3/899/14630899/public_html/docpfe.php:74 Stack trace: #0 {main} thrown in /storage/ssd3/899/14630899/public_html/docpfe.php on line 74
e code de db1.php : <?php
define('Pass','+5N1*8p9r}Icx$IN');
$db1=new mysqli("localhost:3306","id14630899_utilisateurs","Pass","id14630899_siteweb","Port");
if ($db1->connect_error){
die("Could not connect to the database!".$db1->connect_error);
}
?>
le code de docpfe.php : <?php
include ('action.php');
include('administration.html');
?>
jordane45
Messages postés38452Date d'inscriptionmercredi 22 octobre 2003StatutModérateurDernière intervention12 mars 20254 740 Modifié le 26 sept. 2020 à 08:41