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.