Re: Returning values from functions
| From: | David Nicholson | Date: | Wed, 09 Jul 2003 22:44:29 +0000 |
| Subject: | Re: Returning values from functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154648@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 23:40,
lines prefixed by '>' were originally written by you.
> auth_user($_SESSION['login']);
> var_dump($username);
You are not collecting the value that your function returns. Try:
$username = auth_user($_SESSION['login']);
var_dump($username);
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)