Code: Select all
<?php
if (!$result)
?>Code: Select all
<?php
if (mysql_num_rows($result) == 0)
?>Moderator: General Moderators
Code: Select all
<?php
if (!$result)
?>Code: Select all
<?php
if (mysql_num_rows($result) == 0)
?>The select structure is correct. Whether it is correct according to your DB is another story...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?