RE: [PHP-DB] $_get 2 variables

2002-11-20 Thread Gavin Amm
Thanks Ryan, Ignatius.

-Original Message-
From: Ryan Gallagher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 20 November 2002 5:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] $_get 2 variables


Quoting Gavin Amm [EMAIL PROTECTED]:

 Hi,
 
 I'm wanting to retrieve data from my database using 2 conditions in the
 WHERE clause.
 How do i pick up 2 different variables from the URL?
 
 i can get just 1 variable easily (eg:
 http://localhost/myscript.php?var1=blah)
 My question essentially is: what string do do i need to type into the URL
to
 pick up the 2 variables like this:
   $var1 = $_GET['var1'];
   $var2 = $_get['var2'];
 
 Do I need to start messing around with strings? or is there an easy way?
 
 Thanks,
 Gav

Try:
http://localhost/myscript.php?var=foovar2=bar
'' is the default url parameter seperator.  The rest of your code looks
fine. 
(course there are lots of other ways to go about it).

--Ryan


-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



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


This e-mail and any attachments are intended solely for the named addressee,
are confidential and may contain legally privileged information. 

The copying or distribution of them or of any information they contain, by
anyone other than the addressee, is prohibited. If you received this e-mail
in error, please notify us immediately by return e-mail or telephone +61 2
9413 2944 and destroy the original message. Thank you. 

As Email is subject to viruses we advise that all Emails and any attachments
should be scanned by an up to-date Anti Virus programme automatically by
your system. It is the responsibility of the recipient to ensure that all
Emails and any attachments are cleared of Viruses before opening. KSG can
not accept any responsibility for viruses that maybe contained here in.
Please advise KSG by return Email if you believe any Email sent by our
system may contain a virus. It should be noted that most Anti Virus
programmes can not scan encrypted file attachments (example - documents
saved with a password). Thus extra care should be taken when opening these
files. 

Liability limited by the Accountants Scheme, approved under the Professional
Standards Act 1994 (NSW). 



Level 4 
54 Neridah StreetPO Box 1290 
CHATSWOOD   NSW   2067   CHATSWOOD   NSW   2057 


Ph: +61 2 9413 2944  Fax: +61 2 9413 9901

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




[PHP-DB] $_get 2 variables

2002-11-19 Thread Gavin Amm
Hi,

I'm wanting to retrieve data from my database using 2 conditions in the
WHERE clause.
How do i pick up 2 different variables from the URL?

i can get just 1 variable easily (eg:
http://localhost/myscript.php?var1=blah)
My question essentially is: what string do do i need to type into the URL to
pick up the 2 variables like this:
  $var1 = $_GET['var1'];
  $var2 = $_get['var2'];

Do I need to start messing around with strings? or is there an easy way?

Thanks,
Gav


This e-mail and any attachments are intended solely for the named addressee,
are confidential and may contain legally privileged information. 

The copying or distribution of them or of any information they contain, by
anyone other than the addressee, is prohibited. If you received this e-mail
in error, please notify us immediately by return e-mail or telephone +61 2
9413 2944 and destroy the original message. Thank you. 

As Email is subject to viruses we advise that all Emails and any attachments
should be scanned by an up to-date Anti Virus programme automatically by
your system. It is the responsibility of the recipient to ensure that all
Emails and any attachments are cleared of Viruses before opening. KSG can
not accept any responsibility for viruses that maybe contained here in.
Please advise KSG by return Email if you believe any Email sent by our
system may contain a virus. It should be noted that most Anti Virus
programmes can not scan encrypted file attachments (example - documents
saved with a password). Thus extra care should be taken when opening these
files. 

Liability limited by the Accountants Scheme, approved under the Professional
Standards Act 1994 (NSW). 



Level 4 
54 Neridah StreetPO Box 1290 
CHATSWOOD   NSW   2067   CHATSWOOD   NSW   2057 


Ph: +61 2 9413 2944  Fax: +61 2 9413 9901

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




Re: [PHP-DB] $_get 2 variables

2002-11-19 Thread Ryan Gallagher
Quoting Gavin Amm [EMAIL PROTECTED]:

 Hi,
 
 I'm wanting to retrieve data from my database using 2 conditions in the
 WHERE clause.
 How do i pick up 2 different variables from the URL?
 
 i can get just 1 variable easily (eg:
 http://localhost/myscript.php?var1=blah)
 My question essentially is: what string do do i need to type into the URL to
 pick up the 2 variables like this:
   $var1 = $_GET['var1'];
   $var2 = $_get['var2'];
 
 Do I need to start messing around with strings? or is there an easy way?
 
 Thanks,
 Gav

Try:
http://localhost/myscript.php?var=foovar2=bar
'' is the default url parameter seperator.  The rest of your code looks fine. 
(course there are lots of other ways to go about it).

--Ryan


-- 
Ryan T. Gallagher
[EMAIL PROTECTED]
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522



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




Re: [PHP-DB] $_get 2 variables

2002-11-19 Thread Ignatius Reilly
http://localhost/myscript.php?var1=blahvar2=blah2

Ignatius

- Original Message -
From: Gavin Amm [EMAIL PROTECTED]
To: Php-Db (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 7:30 AM
Subject: [PHP-DB] $_get 2 variables


 Hi,

 I'm wanting to retrieve data from my database using 2 conditions in the
 WHERE clause.
 How do i pick up 2 different variables from the URL?

 i can get just 1 variable easily (eg:
 http://localhost/myscript.php?var1=blah)
 My question essentially is: what string do do i need to type into the URL
to
 pick up the 2 variables like this:
   $var1 = $_GET['var1'];
   $var2 = $_get['var2'];

 Do I need to start messing around with strings? or is there an easy way?

 Thanks,
 Gav


 This e-mail and any attachments are intended solely for the named
addressee,
 are confidential and may contain legally privileged information.

 The copying or distribution of them or of any information they contain, by
 anyone other than the addressee, is prohibited. If you received this
e-mail
 in error, please notify us immediately by return e-mail or telephone +61 2
 9413 2944 and destroy the original message. Thank you.

 As Email is subject to viruses we advise that all Emails and any
attachments
 should be scanned by an up to-date Anti Virus programme automatically by
 your system. It is the responsibility of the recipient to ensure that all
 Emails and any attachments are cleared of Viruses before opening. KSG can
 not accept any responsibility for viruses that maybe contained here in.
 Please advise KSG by return Email if you believe any Email sent by our
 system may contain a virus. It should be noted that most Anti Virus
 programmes can not scan encrypted file attachments (example - documents
 saved with a password). Thus extra care should be taken when opening these
 files.

 Liability limited by the Accountants Scheme, approved under the
Professional
 Standards Act 1994 (NSW).



 Level 4
 54 Neridah StreetPO Box 1290
 CHATSWOOD   NSW   2067   CHATSWOOD   NSW   2057


 Ph: +61 2 9413 2944  Fax: +61 2 9413 9901

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




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