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

'&' 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 T. Gallagher
International Studies Abroad

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

Reply via email to