- Home
- Categorie
- Coding e Sistemistica
- Coding
- ricevo un errore? mi aiutate a capire dove?
-
ricevo sempre
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
-
invece di questo
[PHP]
mysql_fetch_assoc
[/PHP]
prova questo
[PHP]
mysql_fetch_array($qLastArticle);
[/PHP]

-
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
è inutile oggi non me ne va bene una….sento che è una fesseria ma non so che fare!!
-
Al posto di:
[php]
$qLastArticle = mysql_query("SELECT ID, post_content, post_title, guid, post_name FROM $tbl_post_wp WHERE post_status = 'publish' AND post_parent = '0' ORDER BY post_date DESC LIMIT $n_last_article");
[/php]
Metti:
[php]
$qLastArticle = mysql_query("SELECT ID, post_content, post_title, guid, post_name FROM $tbl_post_wp WHERE post_status = 'publish' AND post_parent = '0' ORDER BY post_date DESC LIMIT $n_last_article") or die(mysql_error());
[/php]
Ed al posto di:
[php]
$qTenArticle = mysql_query("SELECT ID, post_title, guid, post_name FROM $tbl_post_wp WHERE post_status = 'publish' AND post_parent = '0' $noId ORDER BY post_date DESC LIMIT 10");
[/php]
Metti:
[php]
$qTenArticle = mysql_query("SELECT ID, post_title, guid, post_name FROM $tbl_post_wp WHERE post_status = 'publish' AND post_parent = '0' $noId ORDER BY post_date DESC LIMIT 10") or die(mysql_error());
[/php]Incolla qui gli errori che ti mostrerà, cosi vediamo quali problemi hanno le query.
-
fatto!!! ricevo sempre questo
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [path]/inclusion/inclusion.php on line 41
-
è normale che mi mostra solo e sempre lo stesso errore?
-
Puoi indicarci cosa c'è nella riga 41 del tuo file? Che così non mi è possibile capire quale sia.
-
pare sia questa, ho incollato il codice in dreamweaver:
$rLastArticleImg = mysql_fetch_assoc($qLastArticleImg);
-
Al posto di:
[php]
$qLastArticleImg = mysql_query("SELECT guid post_nameFROM $tbl_post_wp WHERE post_mime_type LIKE 'image/%' AND post_parent = '$rLastArticle[ID]' ORDER BY post_date ASC LIMIT 1");
[/php]
Metti:
[php]
$qLastArticleImg = mysql_query("SELECT guid post_name FROM $tbl_post_wp WHERE post_mime_type LIKE 'image/%' AND post_parent = '$rLastArticle[ID]' ORDER BY post_date ASC LIMIT 1") or die(mysql_error());
[/php]
Mi sembra l'errore sia solamente la mancanza di uno spazio, in caso non sia quello vediamo che errore genera.
-
GRANDEEEEEEEEEEEEEEEE non c'è più errore!!!