Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Pages : 1
Hello, voilà aujourd'hui pour ajouter un mod je suis allé voir sur mon FTP et j'ai remarqué que le fichier "error_log" m'afficher toujours la même erreur :
[23-Jun-2008 13:55:53] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 13:58:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 13:58:29] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:02:30] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:03:39] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:03:52] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:05:22] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:06:10] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:08:00] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:08:49] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:12:14] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:13:53] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:14:13] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:15:33] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:16:28] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 14:17:39] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 22:39:03] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[23-Jun-2008 22:40:18] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[25-Jun-2008 05:45:17] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[25-Jun-2008 05:48:01] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[25-Jun-2008 05:53:23] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
[25-Jun-2008 06:01:16] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home1/elitesys/public_html/newscore.php on line 41
Voilà ce qu'on trouve à cette ligne 41 :
}
elseif($line['rank_topscore'] >= 0 && $line['rank_score'] <= $score)
{
$topscore = 1;
}
else
{
$topscore = 0;
}$sql = 'SELECT * FROM '.$db->prefix.'arcade_ranking WHERE rank_player = '.$pun_user['id'].' AND rank_game = "'.$game_name.'"';
$query = $db->query($sql) or error("Impossible to select the user and game", __FILE__, __LINE__, $db->error());
if(mysql_num_rows($query) > 0)
{
ce sont les lignes de 36 a 42 - 43
vous en pensez quoi ?
Hors ligne
vous en pensez quoi ?
Que si on utilise la couche PunBB ($db), il faut l'utiliser jusqu'au bout.
En l'occurrence remplacer "mysql_num_rows" par "$db->num_rows".
Hors ligne
ah oui merci bien, j'ai modifié j'espère que sa ira maintenant 
Hors ligne
Pages : 1