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
-
-
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:
$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");Metti:
$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());Ed al posto di:
$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");Metti:
$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());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
-
-
Puoi indicarci cosa c'è nella riga 41 del tuo file? Che così non mi è possibile capire quale sia.
-
-
Al posto di:
$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");Metti:
$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());Mi sembra l'errore sia solamente la mancanza di uno spazio, in caso non sia quello vediamo che errore genera.
-
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi
