Ok I have an issue with an if php command.
{php}
$searchloadpage = "/search/Car/";
$listingloadpage = "/listing/%";
$currentpage = $_SERVER['REQUEST_URI'];
if($searchloadpage==$currentpage) {
include('searchload.php');
}
if($listingloadpage==$currentpage) {
include('searchload.php');
} else {
}
{/php}
Now the questions is how do you make it so with the $listingloadpage = "/listing/HERE" the HERE part I need to make it so that anything that is after listing it will take.
Example: /listing/1222.html or any thing that is after /listing/ it will load my searchload.php file. I think its called an wildcard code where the php will think /listing/and any thing after this listing directory.
Hope that was clear. :(