Personally, I would interpolate the $query and $user string like so:
$query = "SELECT credits FROM krypto WHERE user='".$user."' AND pass='".$pass."'";
Always works for me...
rgd
chris r.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php