| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | MySQL errors? Hey guys, I am getting the following errors: Error 1: -------------- Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/flametid/public_html/ahit/config_inc.php on line 51 Here's what line 51 is: if((mktime(0,0,0,date("m"),date("d"),date("Y"))!=m ysql_result($result,0,"date"))and(date(w)==0)){ -------------- Error 2: -------------- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/flametid/public_html/ahit/signup.php on line 167 Here's what line 167 is: while($row = mysql_fetch_array($result1)){ -------------- I am very confused by what's going on and why it won't work. Please help, Thank you in advance; -Andy M. |
| |
| | #3 (permalink) |
| NamePros Member | Try adding this below the line that's causing the error: echo mysql_error(); Perhaps that will give you some more info about what's causing the error. Form the errors you posted, it looks like you're submitting an invalid query to the db, but maybe you're suppressing the mysql error by using an "@" sign in the mysql_query line. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows | deadserious | Webmaster Tutorials | 96 | 05-27-2007 01:24 PM |
| Tutorial: How to Install Apache2 MySQL and PHP on Windows | deadserious | Webmaster Tutorials | 35 | 09-21-2005 09:46 PM |
| Tutorial: Getting Started With MySQL (The Basics) | deadserious | Webmaster Tutorials | 3 | 04-18-2004 01:17 PM |
| MySQL errors. | wicked_gal00 | Website Development | 4 | 10-11-2003 11:12 PM |