Fatal error: Call to undefined function: connexion() in /var

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : Fatal error: Call to undefined function: connexion() in /var

par Invité » 16 juin 2006, 19:46

Je suis intéressé, comment je fait pour résoudre le problème ?

par 3714 » 16 juin 2006, 19:45

Je suis intéressé, comment je fait pour résoudre le problème ?

par Invité » 16 juin 2006, 19:44

Je suis interréssé, comment je fait pour résoudre le problème ?

par 3714 » 16 juin 2006, 19:44

Je suis interréssez, comment je fait pour résoudre le problème ?

par Devether » 16 juin 2006, 11:22

l'erreur n'a rien à voir avec le code que tu as mis.

dans ta page accueil.php, tu as à la ligne 36 un appel à une fonction connexion() qui n'existe pas.

par Cyrano » 16 juin 2006, 07:31

Ne laissez pas vos mots de pass!
Corrigé, j'ai édité.

Ensuite effectivement le nom pour le serveur MySQL ne fonctionnera probablement pas et je dirais que ce n'est même pas sql.free.fr mais localhost qu'il faut mettre : l'accès distant sur les bases de free.fr est bloqué.

par Mouet » 15 juin 2006, 22:39

Ne laissez pas vos mots de pass!

Dans un premier temps, ce que dit jobi1722 doit être changé par sql.free.fr
Ensuite, la base de donnée doit être ton username normalement !
(je ne suis plus sur, je vais aller vérifier ca!)

par jobi1722 » 15 juin 2006, 22:33

Salut,


Ta base de données semble avoir un nom bizarre

$bdd = "http://sql.free.fr/phpMyAdmin/"; 

++

Fatal error: Call to undefined function: connexion() in /var

par Service 3714 » 15 juin 2006, 22:16

Bonjour... à tous ceux qui pourront m'aider et à ceux qui tenterons !!

Là c'est trop, sa fait une heure que j'essaie de trouver une page qui explique cette erreur :
  • Fatal error: Call to undefined function: connexion() in /var/www/sdb/0/5/3714/Messagerie/accueil.php on line 36
    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/sdb/0/5/3714/Chat/affichage.php3 on line 42
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/sdb/0/5/3714/Chat/message.php3 on line 58
mais rien à faire en plus sur les sites on emploides langages trop évolué pour moi alors qu'est-ce qu je fait pour ne pas avoir d'erreur de ce type sur une page par exemple la page chat : http://3714.free.fr/Chat/chat.html
Il y a 3 pages : 1 en html, 2 en php3

Code : Tout sélectionner

<HTML> <!-- DATE DE CREATION: 22/03/00 --> <HEAD> <TITLE></TITLE> </HEAD> <FRAMESET ROWS="*,178" FRAMESPACING=0 BORDER=0 FRAMEBORDER="No"> <FRAME NAME="haut" SRC="affichage.php3"> <FRAME NAME="bas" SRC="message.php3"> <NOFRAMES> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000"> </BODY> </NOFRAMES> </FRAMESET> </HTML>
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv="refresh" content="10; URL=affichage.php3">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000">
<?

/* -----------------------
   Variables de connection 
   -----------------------
*/

$host = "[email protected]";
$user = "3714";
$pass = "*******";
$bdd = "http://sql.free.fr/phpMyAdmin/";
$table = "mesi";

/* ---------------------
   connection avec MySQL
   ---------------------
*/

$ide= MYSQL_CONNECT($host,$user,$pass);
mysql_select_db("$bdd"); 



/* -------------------------
   Lecture des champs
   -------------------------
*/

$tm=microtime();$tm2=explode(" ",$tm);$tm3=$tm2[1];
$query = "DELETE FROM $table WHERE (temp+900)<$tm3";
mysql_query($query,$ide);

$query = "SELECT * FROM $table ORDER BY id DESC";
$result = mysql_query($query,$ide);
$cpt=0;
while($row = mysql_fetch_row($result))
{
$cpt++; 
$coul=substr($row[4],0,1);
$tail=substr($row[4],1,1);
$appa=substr($row[4],2,1);
$msg=$row[2];
if ($appa==1){$msg.=$row2;}
if ($appa==2){$msg2="<B>";$msg2.=$msg;$msg2.="</B>";$msg=$msg2;}
if ($appa==3){$msg2="<I>";$msg2.=$msg;$msg2.="</I>";$msg=$msg2;}
if ($tail==3){$msg2="<FONT SIZE=3>";$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($tail==4){$msg2="<FONT SIZE=4>";$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($tail==5){$msg2="<FONT SIZE=5>";$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==1){$msg2='<FONT COLOR="#000000">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==2){$msg2='<FONT COLOR="#0000FF">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==3){$msg2='<FONT COLOR="#008000">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==4){$msg2='<FONT COLOR="#FFFF00">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==5){$msg2='<FONT COLOR="#FF0000">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}
if ($coul==7){$msg2='<FONT COLOR="#C0C0C0">';$msg2.=$msg;$msg2.="</FONT>";$msg=$msg2;}


echo"<TABLE BORDER=0><TR>";
echo"<TD BGCOLOR='#DFDFDF' WIDTH=80><CENTER><FONT SIZE=2>$row[3]</FONT></CENTER</TD><TD BGCOLOR='#DFDFDF' WIDTH=90><CENTER>$row[1]</CENTER></TD><TD ALIGN='LEFT' VALIGN='TOP'><FONT FACE='Arial'>$msg</FONT></TD><TD><A HREF='upload/$row[5]'>$row[5]</A></TD>";
echo"</TR></TABLE>";
if ($cpt==20) {break;}
}



MYSQL_CLOSE();
?>


</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000">
</FORM>

<form enctype="multipart/form-data" action="message.php3" target="bas" method=POST>
<? echo"Pseudo <INPUT TYPE='text' NAME='pseudo' VALUE='$pseudo' SIZE=10 MAXLENGTH=20>"; 
echo"<input type='HIDDEN' name='MAX_FILE_SIZE' value='100000'>";
echo" Fichier à offrir (50Ko max): <INPUT TYPE='file' NAME='fichier'>";
echo"<BR>";
echo"Couleur <SELECT NAME='couleur' VALUE='$couleur'>";
?>
<OPTION VALUE="1"> Noir
<OPTION VALUE="2"> Bleu
<OPTION VALUE="3"> Vert
<OPTION VALUE="4"> Jaune
<OPTION VALUE="5"> Rouge
<OPTION VALUE="6"> Rose
<OPTION VALUE="7"> Gris
</SELECT>
Taille <SELECT NAME="taille">
	<OPTION VALUE="3"> 3
	<OPTION VALUE="4"> 4
	<OPTION VALUE="5"> 5
</SELECT>
<INPUT TYPE="radio" NAME="attrib" VALUE=1 CHECKED> Normal
<INPUT TYPE="radio" NAME="attrib" VALUE=2> Gras
<INPUT TYPE="radio" NAME="attrib" VALUE=3> Italique<BR>
<BR>
<TEXTAREA NAME="txt" COLS=70 ROWS=3>
</TEXTAREA>
<BR><INPUT TYPE="submit" VALUE="ENVOYER"> <INPUT TYPE="reset" VALUE="ANNULER">
</FORM>
<?

/* -----------------------
   Variables de connection 
   -----------------------
*/

$host = "[email protected]";
$user = "3714";
$pass = "*******";
$bdd = "[email protected]";
$table = "mess1"; 

/* ---------------------
   connection avec MySQL
   ---------------------
*/

$ide= MYSQL_CONNECT($host,$user,$pass);
mysql_select_db("$bdd"); 
$query = "SELECT * FROM $table";
$result = mysql_query($query,$ide);
$ligne = mysql_num_rows($result);

/* -------------------------
   Enregistrement des champs
   -------------------------
*/

$datime = date("Y m d H i u");
$message2 = htmlentities($txt);
$message3 = nl2br($message2);
$formatage=$couleur;
$formatage.=$taille;
$formatage.=$attrib;
$attach="non";
$tmp=microtime();$tmp2=explode(" ",$tmp);$tmp3=$tmp2[1];


if ($fichier !="")
{

copy($fichier,"upload//$fichier_name");
$attach=$fichier_name;
}


if ($txt != "" and $pseudo != "")
{
$query = "INSERT INTO $table VALUES ('0','$pseudo','$message3','$datime','$formatage','$attach','$tmp3')";
$result = mysql_query($query,$ide);
}
MYSQL_CLOSE();
?>

</BODY>
</HTML>
Alors comment je corrige l'erreur : Fatal error: Call to undefined function: connexion() in /var/www/sdb/0/5/3714/Messagerie/accueil.php on line 36