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;
"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
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
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
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
"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
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
7 matches
Mail list logo