Reply to Re: Calling session variable inside a function

Your name:

Reply:


Posted by Akhenaten on 05/18/07 02:17

> Variables external to a function are only valid if:
>
> 1) They are superglobals (i.e. $_SESSION, $_GET, $_POST, etc.),
> 2) They are defined as global in the function, or
> 3) They are passed to the function.
>
> #3 is the best way to go for user variables; just pass the $username as
> a parameter to the function.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Jerry, you just saved me from a painful 'death by code' experience.
Thank you.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация