| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | Php/mysql error Hello everyone; just posting because i have an error on my website that i cant get rid of: What does this error mean and how can i get rid of it? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xcs/public_html/functions/challengeforfeit.php on line 178 |
| |
| | #2 (permalink) |
| Senior Member | Please open this page and get the code around that line, or we could not know where the problem reside. Also make sure that all tables correctly exist in database.
__________________ Custom WordPress theme design. Top notch free WordPress themes Custom Theme Design |
| |
| | #3 (permalink) |
| NamePros Member | ok here is where in the code i think it is... //NEXT 2 FUNCTIONS DELETES AND AWARDS WINS FOR UNRESPONDED OR UNFINALIZED CHALLENGES LINE 178 - function check_unrespondedchallenges(){ $challengeladders=mysql_query("SELECT id,respondhours,finalizehours FROM ladders WHERE challenge='1'"); while(list($id,$respondhours,$finalizehours)=mysql _fetch_row($challengeladders)){ $laterespond=date("Y-m-d H:i:s",time()-60*60*$respondhours); $latefinalize=date("Y-m-d H:i:s",time()-60*60*$finalizehours); $challengeinfo=mysql_query("SELECT challid,challenger,challenged,ladderid,challengerr ank,challengedrank,respondedby,finalizedby FROM challenges WHERE ladderid='$id' AND respondedby='0' AND finalizedby='0' AND challengedtime < '$laterespond' OR ladderid='$id' AND respondedby > '0' AND finalizedby='0' AND respondedtime < '$latefinalize'"); while(list($challid,$challenger,$challenged,$ladde rid,$challengerrank,$challengedrank,$respondedby,$ finalizedby)=mysql_fetch_row($challengeinfo)){ |
| |
| | #6 (permalink) |
| Pro Coder & Designer | upload your file and rename it to file1.phps and then post the url
__________________ Online Dragonball Game |
| |
| | #11 (permalink) | |
| Soon to be RICHdoggie! | Quote:
| |
| |
| | #12 (permalink) |
| New Member | sorry i change the post because for any reason the code is changed PHP Code: see the attachment file it's better Regards Last edited by val539; 07-03-2005 at 01:54 AM. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parse error: parse error, unexpected $ | efriese | Programming | 4 | 06-28-2005 04:55 AM |
| NP error message | redhippo | The Break Room | 2 | 02-08-2005 04:07 AM |
| Custom Error Pages - HELM & FrontPage together on Windows Server? | Cosmos75 | Web Design Discussion | 2 | 08-03-2004 01:43 PM |
| NameCheap, again. [ An error occured ] | Darren | Domain Name Discussion | 1 | 05-31-2004 07:33 PM |