<?
if ($driver_name) {
if ($driver_name == "dr_key") {
include($test[path]."/driverp_logo2.php");
}
else if ($driver_name == null || $driver_name == "") {
include($test-path."/driverp_logo1.php");
}
else {
$driver_logo = $driver_name;
$driver_logo =_make_logo($driver_logo);
include($test-path.$driver_logo);
}
}
?>
I have a problem at "if ".
The code is this.
<?
if ($driver_name) {
if ($driver_name == "dr_key") {
include($test[path]."/driverp_logo2.php");
}
else if ($driver_name == null || $driver_name == "") {
include($test-path."/driverp_logo1.php");
}
else {
$driver_logo = $driver_name;
$driver_logo =_make_logo($driver_logo);
include($test-path.$driver_logo);
}
}
?>
I want to check
1) there is a value for "driver_name",
if the value is "dr_key", then do...
2) if the value is null or "", then another.....
3) if the value is other - i.e dr_glass etc, then ....
But this code works only "$driver_name == "dr_key".
Please help me.