Error in PHP Script
/index.php
PHP Version: 5.2.9;  Zend Engine Version: 2.2.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Microsoft-IIS/6.0;  Server Name: www.monthlymobilephoneoffers.co.uk
HTTP User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
Error Type:   E_WARNING

Rendered Page:   Click here to view contents able to be rendered

Source File:   C:\mobile\monthlymobilephoneoffers.co.uk\includes\blog_enteries.php     Line:   16

Line 11:     
Line 12:    //called in tpl of index
Line 13:    $strBlogHtml = '';
Line 14:    $query = "Select *from wp_posts where post_type='post' and post_status = 'publish' order by post_date desc limit 0,4";
Line 15:    $result = @mysql_query($query);
Line 16:    while ($row = mysql_fetch_array($result)){
Line 17:    
Line 18:    	$strPost = trim_spaces($row['post_content']);
Line 19:    	$strPostName = $row['post_name'];
Line 20:    	
Line 21:    	$strPostLink = 'http://www.monthlymobilephoneoffers.co.uk/blog/index.php/'.$strPostName;

Call Stack:

#0 (): QcodoHandleError()
#1 C:\mobile\monthlymobilephoneoffers.co.uk\includes\blog_enteries.php(16): mysql_fetch_array()
#2 C:\mobile\monthlymobilephoneoffers.co.uk\index.php(2): include()

Variable Dump:   Show/Hide



Error Report Generated:  Tuesday, February 9 2010, 2:09:49 AM