Re: [PHP] pass var through URL String

2002-09-19 Thread Gary

I was wrong, it is passing $bname. I have got it down to a syntax error 
by using.
$sql = "SELECT * FROM bugs WHERE bname = {$_GET['bname']}";

gary

Gary wrote:
> I don't think it is being passed.  I think I am going to have to figure 
> out how to pass bname in the link using pear.With pear   bnname=0
> 
> while ($row = $res->fetchRow()){
> $bname  = $row[0];
> $owner = $row[1];
>echo "
>$bname by 
> $owner
>";
>}
> 
> Gary
> 
> Kevin Stone wrote:
> 
>> There's obviously something wrong with the way you're handeling the new
>> variable.  Do extract($_GET); and go back to the way you were 
>> handeling it
>> before.
>>
>> echo $bname;
>>
>> -Kevin
>>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] pass var through URL String

2002-09-19 Thread Gary

I don't think it is being passed.  I think I am going to have to figure 
out how to pass bname in the link using pear.With pear   bnname=0

 while ($row = $res->fetchRow()){
 $bname  = $row[0];
 $owner = $row[1];
echo "
$bname by 
$owner
";
}

Gary

Kevin Stone wrote:

>There's obviously something wrong with the way you're handeling the new
>variable.  Do extract($_GET); and go back to the way you were handeling it
>before.
>
>echo $bname;
>
>-Kevin
>
>- Original Message -
>From: "Gary" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, September 19, 2002 2:50 PM
>Subject: Re: [PHP] pass var through URL String
>
>
>  
>
>>Tried that already and get an error using $_GET['bname']
>>  T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or
>>T_NUM_STRING
>>
>>using $_GET[bname] without the quotes
>>Undefined index: bname
>>
>>Gary
>>
>>
>>
>>Kevin Stone wrote:
>>
>>
>>>Pass the vars the same way.  Use $_GET['bname'] to retrieve the var.
>>>-Kevin
>>>
>>>- Original Message -
>>>From: "Gary" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Thursday, September 19, 2002 1:54 PM
>>>Subject: [PHP] pass var through URL String
>>>
>>>
>>>
>>>  
>>>
>>>>Hi All,
>>>>Using a link  I could pass
>>>>$bname to another page and using "SELECT * FROM table WHERE bname =
>>>>\"$bname\""; I could get all I need from the db on the new page. Now
>>>>that globals have been turned off and superglobals are replacing them.
>>>>How should I pass and catch the var?
>>>>
>>>>TIA
>>>>Gary
>>>>
>>>>
>>>>--
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>  
>>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>  
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone

There's obviously something wrong with the way you're handeling the new
variable.  Do extract($_GET); and go back to the way you were handeling it
before.

echo $bname;

-Kevin

- Original Message -
From: "Gary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 2:50 PM
Subject: Re: [PHP] pass var through URL String


> Tried that already and get an error using $_GET['bname']
>   T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or
> T_NUM_STRING
>
> using $_GET[bname] without the quotes
> Undefined index: bname
>
> Gary
>
>
>
> Kevin Stone wrote:
> > Pass the vars the same way.  Use $_GET['bname'] to retrieve the var.
> > -Kevin
> >
> > - Original Message -
> > From: "Gary" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 19, 2002 1:54 PM
> > Subject: [PHP] pass var through URL String
> >
> >
> >
> >>Hi All,
> >>Using a link $bname I could pass
> >>$bname to another page and using "SELECT * FROM table WHERE bname =
> >>\"$bname\""; I could get all I need from the db on the new page. Now
> >>that globals have been turned off and superglobals are replacing them.
> >>How should I pass and catch the var?
> >>
> >>TIA
> >>Gary
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] pass var through URL String

2002-09-19 Thread Gary

Tried that already and get an error using $_GET['bname']
  T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or 
T_NUM_STRING

using $_GET[bname] without the quotes
Undefined index: bname

Gary



Kevin Stone wrote:
> Pass the vars the same way.  Use $_GET['bname'] to retrieve the var.
> -Kevin
> 
> - Original Message - 
> From: "Gary" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 19, 2002 1:54 PM
> Subject: [PHP] pass var through URL String
> 
> 
> 
>>Hi All,
>>Using a link $bname I could pass 
>>$bname to another page and using "SELECT * FROM table WHERE bname = 
>>\"$bname\""; I could get all I need from the db on the new page. Now 
>>that globals have been turned off and superglobals are replacing them. 
>>How should I pass and catch the var?
>>
>>TIA
>>Gary
>>
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone

Pass the vars the same way.  Use $_GET['bname'] to retrieve the var.
-Kevin

- Original Message - 
From: "Gary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 1:54 PM
Subject: [PHP] pass var through URL String


> Hi All,
> Using a link $bname I could pass 
> $bname to another page and using "SELECT * FROM table WHERE bname = 
> \"$bname\""; I could get all I need from the db on the new page. Now 
> that globals have been turned off and superglobals are replacing them. 
> How should I pass and catch the var?
> 
> TIA
> Gary
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php