Welcome to WebmasterWorld Guest from 54.144.124.152

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

$ GET , multiple values

     

joergnw10

3:52 pm on Apr 14, 2008 (gmt 0)

10+ Year Member



Sorry if this is a very basic question, but I don't really know any php and couldn't figure out how to solve this:
I have the following code which works fine. What I would like to do is have it return apartments not just for 'Norway', but also for one or more other countries, i.e. 'Sweden'...
Could someone please let me know how to change the code? I tried all sorts of separators but without success.
Thanks very much!

<?require_once($config['basepath'].'/include/search.inc.php');
$search = new search_page();
$_GET['country']='Norway';
$_GET['type']='Apartment';
$display2 = $search->search_results();
echo $display2;?>

jatar_k

4:40 pm on Apr 14, 2008 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't know if it would work

is there anywhere on your site where it already calls more than one? if not then you will have to dig into search_results() and see how it issues queries to the database

you could also try doing that code twice and put Sweden in the second time

joergnw10

5:37 pm on Apr 14, 2008 (gmt 0)

10+ Year Member



Excellent. It does work with two separate lines - thanks very much!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month