Search
Left Quote    A clever person solves a problem. A wise person avoids it.
- Einstein    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: MySQL Fetch Object & Register.php
  This user is online  Guest
  Subject: "MySQL Fetch Object & Register.p..." Posted: @ 1:07 am on Jul 06 2006   
Unregistered
Hey, I think your tutorial on how to make a members area is really great, but there's one problem that I've discovered: When I register an account, I get this error:
< i>supplied argument is not a valid MySQL result resource
I've figured out it's from the 88th line of my register.php file:
Code:
$q3 = mysql_fetch_obj ect($q2);

Is there a fix for this?

    Viewed: 5,832 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: MySQL Fetch Object & Regist..." Posted: @ 2:11 am on Jul 06 2006    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

I believe the error lies in $q2, paste the code for $q2.




-bs0d | AllSyntax.com

    Viewed: 5,822 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: MySQL Fetch Object & Regist..." Posted: @ 3:50 am on Jul 06 2006    
Unregistered

Whoops, it turns out while I was making an extra check to tell if the email was valid (I copied the code for checking how long the username is), I put the wrong row in (email instead of user_email).

Sorry



    Viewed: 5,818 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

This Topic is Locked






"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank