I have a search engine where users can choose consoles using checkboxes, this means that there are several combinations of console.
eg. PC, PS3, Xbox 360, PS2, Xbox, Mac.
I tried the below code but it doesn’t work
[code=php] if($pc == “on”) {
$pcsites = “&Realm=pc-cheats-codes.com&”;
}
else {
$pcsites = “”;
}
if($ps3 == “on”) {
$ps3sites = “”;
}
else {
$ps3sites = “”;
}
if($x360 == “on”) {
$x360sites = “”;
}
else {
$x360sites = “”;
}
if($ps2 == “on”) {
$ps2sites = “&Realm=playstation2cheats.net&”;
}
else {
$ps2sites = “”;
}
if($xbox == “on”) {
$xboxsites = “”;
}
else {
$xboxsites = “”;
}
if($mac == “on”) {
$macsites = “&Realm=maccheats&”;
}
else {
$macsites = “”;
}
if(isset($Terms)) {
if($Rank == “”){
echo file_get_contents(“http://www.gameslayer.co.uk/search/search.pl?Terms=’ . $Terms . ‘ . $pcsites . ‘ . $ps3sites . ‘ . $x360sites . ‘ . $ps2sites . ‘ . $xboxsites . ‘ . $macsites . ‘Match=” . $Match . “&maxhits=” . $maxhits . “&Rank=1”);
}
else {
echo file_get_contents(“http://www.gameslayer.co.uk/search/search.pl?Terms=’ . $Terms . ‘ . $pcsites . ‘ . $ps3sites . ‘ . $x360sites . ‘ . $ps2sites . ‘ . $xboxsites . ‘ . $macsites . ‘Match=” . $Match . “&maxhits=” . $maxhits . “&Rank=” . $Rank);
}
}
The idea of the code is that the search scrip i use uses $Realm for each individual group of pages, in my case many for each site, which are then searched based pn console.
I need to set multiple Realms for a site for each console, the above code in theory works, but does not, the seardch engine responds with nothing set.
Anyone know how to make it work, alternatives?
(I havn’t shown the retriefval of $pc etc from the URL, but it has been done)