Help w/ $_SESSION
| From: | conbud | Date: | Tue, 12 Nov 2002 07:05:42 +0000 |
| Subject: | Help w/ $_SESSION | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123940@lists.php.net to get a copy of this message | ||
Hey,
How would I insert $_SESSION['user'] and $_SESSION['pass']
into this
mysql_query("select count(*) AS numfound from admins where user='$user' AND
pass='$pass'",$db);
right now I have
$_SESSION['user'] = $_POST['user']
$_SESSION['pass'] = $_POST['pass']
and I need to put $_SESSION['user'] where the $user is in the above
statement and so one w/ $pass
Thanks
Lee