VK4KBG Posted December 28, 2009 Share Posted December 28, 2009 Hi, I am getting this error: http://www.bikesforsale.net.au/admanager/ here is the section of script: $a = mysql_query("select id, time_hold, grp, count, description, notify from banners where limit_type = 3"); LINE 22 if (mysql_num_rows($a)) { while ($b = mysql_fetch_array($a)) { $c = $b[time_hold]; $f = $b[id]; $gr = $b[grp]; $ad = $b[count]; $desc = $b[description]; $not = $b[notify]; if ($sys_time > $c) { mysql_query("update banners set time_hold = time_hold+1, count = count-1 where id = $f"); } if ($ad == $nld && $not != 1) { mysql_query("update banners set notify = 1 where id = $f"); $ntype = "$notify_limit_days Days"; include("config/email.php"); } } } } ?> Any help gratefully received Link to comment https://forums.phpfreaks.com/topic/186493-need-some-help-here-please/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 28, 2009 Share Posted December 28, 2009 Your query failed to execute and returned an error instead of a result resource. For debugging purposes echo mysql_error(); on the line immediately after the line with the mysql_query() statement. Link to comment https://forums.phpfreaks.com/topic/186493-need-some-help-here-please/#findComment-984850 Share on other sites More sharing options...
scvinodkumar Posted December 28, 2009 Share Posted December 28, 2009 check all the fields u mentioned in the query, may be the spelling will be wrong or field doesn't exist Link to comment https://forums.phpfreaks.com/topic/186493-need-some-help-here-please/#findComment-984851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.