Evening all,
I've spent the last 4 hours banging my head off the desk at this one but Im sure its something simple.
I want to construct and pass across a search string via a URL, ie the selected record is pulled from the database and displayed like so:
Make: Ford
Model: Mondeo
Colour: Blue
Im attempting to set up the results as search options ie click on Ford and it will search for all other Fords, click Blue and it will search for all blue cars.
Heres a snippet of how I saw it:
$make=mysql_result($result,$i,"make");
$makelink = "`make` = '".$make."'";
echo "<a href='dir1a.php?searchstr=".$makelink."' title='Find more ".$make."'>".$make."</a>"; ?>
when I debug by popping an echo $makelink in I get as expected
`make` = 'Ford'
however when I pass it through the URL it passes `make =
Im sure its to do with the quote marks (') however no matter what I try doesnt seem to do anything even escaping them with \ just sends the \ as well.
Help!!!!
I've spent the last 4 hours banging my head off the desk at this one but Im sure its something simple.
I want to construct and pass across a search string via a URL, ie the selected record is pulled from the database and displayed like so:
Make: Ford
Model: Mondeo
Colour: Blue
Im attempting to set up the results as search options ie click on Ford and it will search for all other Fords, click Blue and it will search for all blue cars.
Heres a snippet of how I saw it:
$make=mysql_result($result,$i,"make");
$makelink = "`make` = '".$make."'";
echo "<a href='dir1a.php?searchstr=".$makelink."' title='Find more ".$make."'>".$make."</a>"; ?>
when I debug by popping an echo $makelink in I get as expected
`make` = 'Ford'
however when I pass it through the URL it passes `make =
Im sure its to do with the quote marks (') however no matter what I try doesnt seem to do anything even escaping them with \ just sends the \ as well.
Help!!!!