[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-14-2005, 03:35 PM   #1 (permalink)
Senior Member
 
Ringr's Avatar
 
Join Date: Jul 2004
Posts: 1,391
1,090.86 NP$ (Donate)

Ringr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to behold


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.
Ringr is offline  
Old 05-14-2005, 03:42 PM   #2 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


possibly an error in your sql syntax. post the whole script and I'll see what i can do
stscac is offline  
Old 05-14-2005, 05:23 PM   #3 (permalink)
NamePros Member
 
Join Date: May 2005
Location: Osaka, Japan
Posts: 37
69.00 NP$ (Donate)

df-sean is an unknown quantity at this point


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.
__________________
:::: *DataFly.Net *::::
Rock-Solid Linux Web Hosting

http://www.datafly.net
df-sean is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:48 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85