Hey guys im new to php i dont really dont know much i dont know if what i did is possible or not but im getting and undefined variable error here does anyone know why? please help... here is the code
the variable undefined is $crem_vel
PHP Code:
$tipo = $fif['Tipo de Servicio']; if ($tipo == "Cremacion con Velacion") { $crem_vel = "Cremacion con Velacion"; } else if ($tipo == "Cremacion Directa") { $crem_dir = "Cremacion Directa"; } else if ($tipo == "Sepultura con Velacion") { $sep_vel = "Sepultura con Velacion"; } else if ($tipo == "Sepultura Directa") { $sep_dir = "Sepultura Directa"; } else if ($tipo == "Traslado Guadalajara/Mexico DF") { $tras_df = "Traslado Guadalajara/Mexico DF"; } else if ($tipo == "Traslado Guatemala") { $tras_gua = "Traslado Guatemala"; } else if ($tipo == "Traslado Salvador/Honduras/Nicaragua") { $tras_sal = "Traslado Salvador/Honduras/Nicaragua"; } else { $crem_vel = $crem_dir = $sep_vel = $sep_dir = $tras_df = $tras_gua = $tras_sal = ""; }
Thanks 
Last edited by stivens; 09-24-2010 at 04:55 PM..
|