[PHP] Re: global variable declaration

2006-02-08 Thread Barry
suresh kumar wrote: hai, this is my sample code: i am having user table with SponsorID as one field in mysql database,this is my query; for($j=0;$j<5;$j++): $result=mysql_query("select * from user where SponsorID='$id[$j]' "); endfor;

[PHP] Re: Global variable question question

2003-07-23 Thread Kevin Stone
"Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When registered globals is set to off this does not effect the $PHP_SELF > variable right? In other words I should be able to call $PHP_SELF with > out having to do this $_SERVER['PHP_SELF'], right? > > Thanks, > Jas

[PHP] Re: Global variable

2002-04-18 Thread Michael Andersson
Maybe you could use sessions like: session_start(); session_register('verified'); $verified=0 "Erich Kolb" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have developed a simple login script. Right now it will check a submitted > username and password

[PHP] Re: Global Variable Change

2002-03-01 Thread Yasuo Ohgaki
Thomas Brodkorb wrote: > Hi folks, > > small problem with globals: > > I would like to set a variable global called "Language". > > This seems to be not a really problem, but it is. > > Index.php: > >session_start(); > if (!session_is_registered('Language')) { > session_register('La

[PHP] Re: global variable.

2001-08-26 Thread Goran Aleksic
hi, if I understand correctly... you should try: include this line in files where you want to make your $a global Goran Hugh Bothwell <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > "Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECT

[PHP] Re: global variable.

2001-08-25 Thread Hugh Bothwell
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > hi. > > I want to use glabal variable. > > global $a; > > ?> > but it doesnot work?? ... why do you think you need to use global here? global is used *in a function* to let it see external va

[PHP] Re: Global Variable Variables...

2001-07-26 Thread Yasuo Ohgaki
Read "References explained" section in PHP Manual. You'll see why it does not work as you expected. -- Yasuo Ohgaki "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a class that contains a form, when the form is submitted it > posts