Jump to content
MakeWebGames

Recommended Posts

Posted

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);

Posted

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("^[

Posted

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......"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...