Warning sur mysql_num_rows()

psychotom
Invité n'ayant pas de compte PHPfrance

27 janv. 2006, 01:38

ça continue sur la lancée ;)
j'ai donc transféré une table sur mon nouveau serveur ...

La première requete s'effectue sans problemes ...

La seconde :

Code : Tout sélectionner

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in editer_cat_rechercher_2.php on line 63
(j'ai ça partout dans ma fenetre, a des line differentes)

j'y comprends rien ...

A l'aide !!!

psychotom
Invité n'ayant pas de compte PHPfrance

27 janv. 2006, 01:41

Oublié de donner le contenu de mon fichier qui est incriminé :
<?

session_start();

if (!session_is_registered('login')) {
//	header("Location:index.php");
}

include "./configuration.php";

echo "<html>";
echo "<head>";

echo "<script type=\"text/javascript\">";


echo "function printpage() {";
echo "window.print()";  
echo "}";

echo "</script>";


echo "<title>MYCODOC</title>";
echo "<link rel='stylesheet' href='style.css'>";
echo "<style TYPE=\"text/css\">
<!-- 
A { color:#17501F; text-decoration:none; }
A:hover { color:#910404; text-decoration:none; }
body { 
scrollbar-3dlight-color : #8DA991; 
scrollbar-arrow-color : #17501F; 
scrollbar-base-color : #8DA991; 
scrollbar-face-color : #8DA991; 
scrollbar-highlight-color : #FFFFFF; 
scrollbar-shadow-color : #FFFFFF; 
scrollbar-track-color :#FFFFFF; 
} 
--> 
</style>"; 

echo "</head>";
//echo "</html>";
//echo "</body>";
$indexligne=0;

//print("valeur de genre  :".$_GET['genre']."<br>");
//print("valeur de espece :".$_GET['espece']."<br>");
//echo "<BODY TEXT='#000000' BGCOLOR='#dedede' LINK='#000000' VLINK='#000000' ALINK='#F70404'>";
//<table border=\"0\">";


echo "<td align=right><form><input type=button value=\"Imprimer cette page\" onClick=\"printpage()\"></form></td>";

echo "<br />";echo "<br />";

if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table2, biblio, livres
	WHERE $table2.genre = '$_GET[genre]' and $table2.espece = '$_GET[espece]' AND $table2.numtax = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//print($query);
//print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table2\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	    

		$indexligne = $indexligne + 1;

	        //on affiche les résultats
		
		
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";
};



if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR,  TOME, FASCICULE, PAGE,livres.ANNEE FROM $table3, biblio, livres
	WHERE $table3.genre = '$_GET[genre]' and $table3.espece = '$_GET[espece]' AND $table3.numtax = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//  print($query);
//  print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table3\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	    

	        //on affiche les résultats
		$indexligne = $indexligne + 1 ;
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";


  
};





if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR,  TOME, FASCICULE, PAGE, livres.ANNEE FROM $table4, biblio, livres
	WHERE $table4.genre = '$_GET[genre]' and $table4.espece = '$_GET[espece]' AND $table4.numtax = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//  print($query);
//  print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table4\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	    
	        //on affiche les résultats

		$indexligne = $indexligne + 1 ;
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";


};




if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR,  TOME, FASCICULE, PAGE, livres.ANNEE FROM $table5, biblio, livres
	WHERE $table5.genre = '$_GET[genre]' and $table5.espece = '$_GET[espece]' AND $table5.numtax = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//  print($query);
//  print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table5\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	  

	        //on affiche les résultats
		$indexligne = $indexligne + 1 ;
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</b></td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";



};


if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR,  TOME, FASCICULE, PAGE, livres.ANNEE FROM $table6, biblio, livres
	WHERE $table6.genre = '$_GET[genre]' and $table6.espece = '$_GET[espece]' AND $table6.numero = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//  print($query);
//  print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table6\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	    


	        //on affiche les résultats
		$indexligne = $indexligne + 1 ;
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";


};




if ($_GET['genre'] != "") {
	$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR,  TOME, FASCICULE, PAGE, livres.ANNEE FROM $table8, biblio, livres
	WHERE $table8.genre = '$_GET[genre]' and $table8.espece = '$_GET[espece]' AND $table8.numtax = biblio.taxon 
	AND biblio.codlivre = livres.codlivre");

    $bool = 'true';
    $num_rows = mysql_num_rows($query);

//  print($query);
//   print($num_rows);

    if ($num_rows == '0'){
//	echo "<td align=center><b>LA TABLE \"$table8\" : </b></td>";echo "<br />";
//	echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
	};





     while ($result = mysql_fetch_array($query)) 
    {
	    
	        //on affiche les résultats
		$indexligne = $indexligne + 1 ;
		echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">\n";
			echo "<td align=center>".$result['TITRE']."</td>";
                        echo "</td>";
                    echo "</b></tr>\n\n";
                   
//		if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
//		echo "<td align=center><b>Auteur : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['AUTEUR']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
//		echo "<td align=center><b>Annee : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['ANNEE']."</td>";
                        echo "</td>";
                    echo "</tr>";

echo "<br />";


//		if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
		echo "<td align=center><b>Tome : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['TOME']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
		echo "<td align=center><b>Fasicule : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['FASCICULE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";

//		if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
		echo "<td align=center><b>Page : </b></td>";
                    echo "<tr>\n";
                       echo "<td style=\"width: 20%\">";
			echo "<td align=center>".$result['PAGE']."</td>";
                        echo "</td>";
                    echo "</tr>\n\n";


		echo "<br />";
		echo "<br />";

//		if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";

    };

    mysql_free_result($query);
	echo "<br />";echo "<br />";

};



   mysql_close ();


?>

Avatar du membre
ViPHP
ViPHP | 3008 Messages

27 janv. 2006, 10:23

Je te conseille d'éditer ton post et d'utiliser le bbcode php mis à ta disposition pour éclaircir ton code. Personne ne viendra le lire sinon et tu n'auras aucune réponse...

Administrateur PHPfrance
Administrateur PHPfrance | 11457 Messages

27 janv. 2006, 10:47

Sans oublier de mettre un titre explicite à ton sujet, en éditant ton premier message.

psychotom
Invité n'ayant pas de compte PHPfrance

27 janv. 2006, 11:21

Bon, alors en fait je suis invité sur ce forum, je ne peux pas mettre à jour mes messages, et tu me demandes de mettre le code php, c'est ce que j'ai fait plus haut !!

SOyez indulgents avec moi, je ne connais rien en php !

Avatar du membre
ViPHP
ViPHP | 3008 Messages

27 janv. 2006, 11:24

Inscris toi pour pouvoir le faire toi même la prochaine fois. Si un aimable modérateur pouvait passer dans le coin et le faire pour toi cette fois ci ;)

Quand je te demande d'utiliser le bbcode PHP, ce n'est pas mettre le code PHP, mais mettre ton code PHP entre les tag [ php ] pour colorer tes lignes et donc faciliter la lecture.

Déjà dans ton code tu peux mettre des lignes hors PHP.
Au lieu de mettre :
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-"); 
echo "<td align=center><b>Fasicule : </b></td>"; 
echo "<tr>\n"; 
echo "<td style=\"width: 20%\">"; 
echo "<td align=center>".$result['FASCICULE']."</td>"; 
echo "</td>"; 
echo "</tr>\n\n";
Tu devrais mettre :
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-"); 
	<td align=center><b>Fasicule : </b></td>
<tr>
	<td style="width: 20%">
	<td align=center><?php echo $result['FASCICULE']?></td>
</tr>
De plus ton code HTML n'est pas correcte. Des </td> se chevauchent et des <td> commencent sans <tr>...
Modifié en dernier par charabia le 27 janv. 2006, 11:29, modifié 2 fois.

Avatar du membre
Administrateur PHPfrance
Administrateur PHPfrance | 13231 Messages

27 janv. 2006, 11:28

Si un aimable modérateur pouvait passer dans le coin et le faire pour toi cette fois ci ;)
c'est fait ;)
Quand je te demande d'utiliser le bbcode PHP, ce n'est pas mettre le code PHP, mais mettre ton code PHP entre les tag [ php ] pour colorer tes lignes et donc faciliter la lecture.
J'ajouterais que même si tu ne connais rien à PHP (ce dont je doute. si tu as commencé à regarder ce code, c'est que tu doit au moins avoir 2-3 bases), tu doit arriver à isoler un peut la section contenant les erreurs. Donc au lieu de poster un gros code que personne ne va lire, tu aurais pu nous donner juste le passage qui, selon toi, boque
Connaître son ignorance est la meilleure part de la connaissance
Pour un code lisible : n'hésitez pas à sauter des lignes et indenter

twitter - site perso - Github - Zend Certified Engineer

Modérateur PHPfrance
Modérateur PHPfrance | 2575 Messages

27 janv. 2006, 11:33

Oui mais la prochaine fois, n'envoi pas tout ton code ça ne sert à rien.
Il fallait envoyer seulement la partie nécessaire où l'erreur se produit c'est à dire : la requête SQL et le num_rows incriminé.

De toutes façons, ton problème est vraisemblablement lié au transfert de ta table sur le nouveau serveur.
Selon le message d'erreur que tu reçoi, la requête SQL n'est pas bien exécutée ; probablement ceci est dù à une table qui manque ou à un nom de table ou de champ qui n'existe pas.

Vérifie tes requêtes directement sur le serveur avant de les exécuter via PHP.
--------//////----//---//----//////
-------//---//----//---//----//---//
------//////----//////-----//////
-----||--------||--||---||
Prendre le recul n'est pas une perte de temps.


ps: Affrontez moi dans l'arène

Administrateur PHPfrance
Administrateur PHPfrance | 11457 Messages

27 janv. 2006, 13:19

Bon, alors en fait je suis invité sur ce forum, je ne peux pas mettre à jour mes messages
Tu as raison. Au temps pour moi ! :oops:
J'ai donc changé ton titre.
Profites-en pour t'inscrire... ;)

psychotom
Invité n'ayant pas de compte PHPfrance

27 janv. 2006, 13:24

Ben si, j'y connais rien en php moi ...

Alors petit flashback : j'ai eu un plan our faire un site, que j'ai accepté, malheuresement avec un moteur de recherche aussi, un module à part, que j'ai fait développer par une tierce personne.
Ce ceode marchait trés bien en appelant la base sur son serveur.

Il faut maintenant que je me débbrouille tout seul, j'ai du créer la base sur un autre serveur...
d'ou les erreurs :(