User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 426,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,757 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 1972 | Replies: 2
Reply
Join Date: Nov 2004
Posts: 3
Reputation: jrworks is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jrworks jrworks is offline Offline
Newbie Poster

been getting errors. can you help?

  #1  
Nov 28th, 2004
hey I've been getting this error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource This is what it said that is causing the problem: $stafflist=mysql_query("SELECT id,name,sn,email,title FROM staff WHERE man='Yes' ORDER BY id");

Can you please tell me what is worng ASAP.

Thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 3
Reputation: mikeps is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mikeps mikeps is offline Offline
Newbie Poster

Solution Re: been getting errors. can you help?

  #2  
Dec 3rd, 2004
Originally Posted by jrworks
hey I've been getting this error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource This is what it said that is causing the problem: $stafflist=mysql_query("SELECT id,name,sn,email,title FROM staff WHERE man='Yes' ORDER BY id");

Can you please tell me what is worng ASAP.

Thank you


Hi

I can only think that your staff table does not have one of the fields...
id,name,sn,email,title or man

maybe one of them is spelt wrong

Any Help?

Mike
Reply With Quote  
Join Date: Nov 2004
Posts: 3
Reputation: jrworks is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jrworks jrworks is offline Offline
Newbie Poster

Re: been getting errors. can you help?

  #3  
Dec 3rd, 2004
Yeah you could be right I'll go a look at the script. If not I'll get back to you

Thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 6:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC