| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Apr 2005 Location: England
Posts: 159
![]() | 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 Join Date: May 2005 Location: I'm right here
Posts: 3,526
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ WP Theme Developer Your One-stop for Premium Magazine/CMS WordPress Themes Deluxe Themes |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Apr 2005 Location: England
Posts: 159
![]() | 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'"); ????: NamePros.com http://www.namepros.com/programming/103631-php-mysql-error.html 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 Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | upload your file and rename it to file1.phps and then post the url
__________________ aween web development |
| |
| | #7 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | You might also want to try using mysql_error() to see if it spits out any more detailed errors. Example: PHP Code: |
| |
| | #11 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | #12 (permalink) |
| New Member Join Date: Jul 2005
Posts: 8
![]() | 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 02: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 05:55 AM |
| NP error message | redhippo | The Break Room | 2 | 02-08-2005 05:07 AM |
| Custom Error Pages - HELM & FrontPage together on Windows Server? | Cosmos75 | Web Design Discussion | 2 | 08-03-2004 02:43 PM |
| NameCheap, again. [ An error occured ] | Darren | Domain Name Discussion | 1 | 05-31-2004 08:33 PM |