On 8/28/07, Jason Pruim <japruim@xxxxxxxxxx> wrote: [snip] > > $sql = "SELECT * FROM users WHERE user='".$user."' AND > > pass='".$pass."' LIMIT 0,1;"; > > $result = mysql_query($sql) or die("Wrong data supplied or > > database error"); > > while($row = mysql_fetch_array($result)) { Sounds to me like you're not getting through the while() clause, meaning that there's no matching rows in the database. $sql = "SELECT * FROM login WHERE loginid='".$user."' AND email='".$pass."' LIMIT 0,1;"; Is the password they supply in the `email` column of the database? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list.... 50% off for life on web hosting plans $10/mo. or more at http://www.pilotpig.net/. Use the coupon code phpgeneralaug07 Register domains for about $0.01 more than what it costs me at http://domains.pilotpig.net/. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php