Check with me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

If that doesn't work then change

Code: Select all

<?php
if (!$result)
?>
to

Code: Select all

<?php
if (mysql_num_rows($result) == 0)
?>
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

mr-punkstar wrote:$query = "Select memberid from userinfo where username='".$username."' and password='".$password."'";

is the query correct

they supply the username and password, the it checks it, gives meback a member id, the I can take them on to their own screen using that id, but if there is no id, they dont get in yeah?
The select structure is correct. Whether it is correct according to your DB is another story...
mr-punkstar
Forum Newbie
Posts: 19
Joined: Mon May 31, 2004 1:12 pm

Post by mr-punkstar »

no, that works

lol
ive solved it

thanks neways!
Post Reply