> <?
> session_start();

> session_register('email');
> $session = session_id();
> $userid = '$user';

> $sql = "SELECT *
>     FROM users
>     WHERE user='$user' and pass='$pass'";

> if ($num == 1) {
> include "quote2.php";
> }

Unless quote2.php sets $email, you've never set it to anything.

You've probably got their email in $result -- you just need to pull it out
and set it.

$email = mysql_result($result, 0, 'email');



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to