Loans - Electricity Suppliers - Free Advertising - Loans - Credit Check

PDA

View Full Version : php include help


farhang
Apr 4th 2008, 5:11 pm
Hello i have a some keywords stored in a array called $search

What i want is to replace the blahblah with search array.

<?php include('http://127.0.0.1/search/searchinclude.php?query=BLAHBLAHBLAH&search=1&results=10'); ?>

i though the following code would work but it is'nt working, do i need to add print with it ? and if yes then how...

thanks

searchinclude.php?query='. $search .'&search

cbn81
Apr 4th 2008, 5:13 pm
what's inside search? keyword value pairs or what else?

Ikki
Apr 4th 2008, 5:23 pm
Hi mate,

Try this:

include('http://127.0.0.1/search/searchinclude.php?query='. urlencode($search) .'&search=1&results=10');

farhang
Apr 4th 2008, 5:27 pm
just 2 keywords. if i print, i get "keyword1 keyword2"

farhang
Apr 4th 2008, 5:46 pm
Works perfectly, thanks Ikki

Ikki
Apr 5th 2008, 7:45 am
Works perfectly, thanks Ikki
Great :) Glad to know that!