Re: Returning values from functions
| From: | Jason Giangrande | Date: | Wed, 09 Jul 2003 22:53:07 +0000 |
| Subject: | Re: Returning values from functions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154649@lists.php.net to get a copy of this message | ||
Thanks. I'm new to PHP, but still I should have seen that. :-)
Jason
On Wed, 2003-07-09 at 18:44, David Nicholson wrote:
> 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)