kenja Posted July 16, 2009 Posted July 16, 2009 i am using v2..on my register page i get this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kenja/public_html/register.php on line 30 here is line 30- $ar=mysql_fetch_array($q); Quote
Lithium Posted July 16, 2009 Posted July 16, 2009 Re: Register placing the line only won't do any good nor will show where the error might be... tryplacing between line 25-35 for someone to help you out Quote
kenja Posted July 16, 2009 Author Posted July 16, 2009 Re: Register 25- { 26- $set[$r['conf_name']]=$r['conf_value']; 27- } 28- if($db->num_rows($q)) 29- { 30- $ar=mysql_fetch_array($q); 31- } 32- //thx to http://www.phpit.net/code/valid-email/ for valid_email 33- function valid_email($email) { 34- // First, we check that there's one @ symbol, and that the lengths are right 35- if (!ereg("^[ Quote
kenja Posted July 16, 2009 Author Posted July 16, 2009 Re: Register ok..never mind i got it fixed just had to add @ $ar=mysql_fetch_array($q); - old $ar=@mysql_fetch_array($q); - new Quote
Dave Posted July 17, 2009 Posted July 17, 2009 Re: Register ok..never mind i got it fixed just had to add @ $ar=mysql_fetch_array($q); - old $ar=@mysql_fetch_array($q); - new That's not a fix @ just makes it so it dosen't return an error! The actual problem is with whatever is after $q so post the bit which looks like "$q=mysql_query......" Quote
kenja Posted July 17, 2009 Author Posted July 17, 2009 Re: Register $q=mysql_query("SELECT * FROM users WHERE laston<unix_timestamp()-86400*10 ORDER BY laston DESC",$c); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.