sorry ma question went wrong a bit the alis has value like alias =”Sri Kumaran Children’s Home – CBSENothing is as pure and divine as knowledge.” but as the url i have given . when i hover over the link it just shows alias=Sri Kumaran Children . how to solve this problem
$myresult .= "<a href='Schools/{$alias}'><img src='/school/schoolpicdisplay.php?p1={$brand}&p2={$model}' width=\"50\" height=\"80\"></img></a>";
If you know there will be a single quote, why don’t you use double quotes in the first place?
However, since your
$modelis going to be in a parameter string, you shouldrawurlencodeit.