Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2005, 11:57 PM
General Nuisance is offline General Nuisance
Registered User

Join Date: Oct 2004
Posts: 616

Send a message via ICQ to General Nuisance
fetch_array error...

hey guys this is making me mad..

what ever im doing wrong i am doing it consistently because every script i have made lately gets same error...

this is the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\www\webroot\temp\faqs.php on line 14

and this is code..

PHP Code:
<html>
<?php
include ('global.php');
$fq $_POST['fq'];
$fa $_POST['fa'];

mysqlconnect();
mysqlselectdb();

//Query for faqs//
$rs ="select * from faqs order by id desc )";
$rs mysql_query$rs );

while ( 
$row mysql_fetch_array$rs) )  <---------- line 14
{
?>
<center>
  <li>Q.<?php echo $row['fq']; ?> </li>
  <li>A.<?php echo $row['fa']; ?></li>
</center>
<?php
}
?>
</html>
if yall see whats wrong i would appreciate it if you would tell me how to avoid it.
__________________
The Nova-Zone


http://youraite.yourhost.yourusername.com - long urls
-looks bad
-who can remember it?
- Solution?
- Get a short Nova-Zone subdomain! Yoursite.nova-zone.com
- Now thats smart. just ask for one via pm,email or contact page on site.
Reply With Quote
  #2  
Old 08-08-2005, 12:16 AM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Send a message via AIM to IcIshoot Send a message via MSN to IcIshoot Send a message via Yahoo to IcIshoot
why is that ) in your sql query?

Try taking that out.

IcI
Reply With Quote
  #3  
Old 08-08-2005, 12:50 AM
General Nuisance is offline General Nuisance
Registered User

Join Date: Oct 2004
Posts: 616

Send a message via ICQ to General Nuisance
thanks ici

that done it
__________________
The Nova-Zone


http://youraite.yourhost.yourusername.com - long urls
-looks bad
-who can remember it?
- Solution?
- Get a short Nova-Zone subdomain! Yoursite.nova-zone.com
- Now thats smart. just ask for one via pm,email or contact page on site.
Reply With Quote
  #4  
Old 08-08-2005, 01:04 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

Quote:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\www\webroot\temp\faqs.php on line 14
That error almost always means there is an error in the actual mysql query, the the mysql_fetch_array, wheather is be a typo in the query or the table coloums/table's are spelt wrong..
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DFLW Swapfile error fix error Hellfighter Tech Support 0 02-29-2008 03:35 AM
installing DFBHD, I get an error, “An error occurred during the move data process.” Steve Delta Force 1 01-09-2007 04:54 AM
If your getting an error with Team Speak with the Richedit Line Insertion Error READ .DareDevil. Hardware and Software 0 09-29-2004 03:50 PM
error message, “Error 106.” Steve Delta Force 0 01-08-2004 08:27 PM
error need help bat21_uk Delta Force 1 09-20-2003 09:51 PM


All times are GMT -5. The time now is 03:59 PM.




Powered by vBulletin®