Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html Subscribe and keep up to date with Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result with the latest replies and comments from other people like you who are interested in Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result at wallpaperama.com en Warning: Mysql_fetch_array(): Supplied Argument Is Not A Valid MySQL Result [ Visit Post ] http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html I am getting the following error on my php script: [code:1:085b4c6585]Warning&amp;#58; mysql_fetch_array&amp;#40;&amp;#41;&amp;#58; supplied argument is not a valid MySQL result resource in /var/www/html/titles.php on line 42[/code:1:085b4c6585] This is line 42: [code:1:085b4c6585] Line 38 $sql = &amp;quot;select titleid from pages where sid=$catid&amp;quot;; Line 39 $result = mysql_query&amp;#40;$sql ,$db&amp;#41;; Line 40 if &amp;#40;$result&amp;#41; &amp;#123; Line 41 Lin <a href="http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html">..... Read More </a> http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html Comments by: PIper Fri, 02 Jan 2009 00:35:10 -0700 i love this wallpaper... its mine on my computer!! =d http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html#26892 http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html#26892 Comments by: pinguin Fri, 02 Jan 2009 00:35:10 -0700 Basically this error is telling you that mysql could not find the data from the database. This is the problem: you are telling the database: Grab the data from the &quot;titleid&quot; table where the field &quot;sid&quot; matches whatever value $catid has in the pages table of your database. So simply put, you are getting this error because not matches were found. Either because the table or field is empty or you may have the $catid variable as empty (false) To resolve this problem, check to make sure your database has data that matches the $catid http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html#54 http://www.wallpaperama.com/forums/warning-mysql-fetch-array-supplied-argument-is-not-a-valid-mysql-result-t78.html#54