session_start(); include_once("../../libphp/constants.php"); include_once("../../libphp/misfuns.php"); $idprofyfin=substr(strrchr (__FILE__,"-"),1); $pospto=strpos($idprofyfin,"."); $idprof=substr($idprofyfin,0,$pospto); if($idprof=="XXX") header( 'Location: http://www.cartagena99.com/profesores-particulares-madrid'); $consulta="SELECT asignaturas, Nombre, Estudios, experienciaLaboral, horariosDisponibles, fechaalta, disponible, conocido FROM profesores p WHERE idProfesor=".$idprof." and visible='1' ORDER BY RAND();"; $resultado = mysql_query($consulta, $conexion); $total = mysql_num_rows($resultado); if($total>1) echo "MAS DE UN PROFESOR CON LA MISMA ID???"; $registro=mysql_fetch_row($resultado); $registro0utf8=utf8_encode($registro[0]); $registro1utf8=utf8_encode($registro[1]); $registro2utf8=utf8_encode($registro[2]); $registro3utf8=utf8_encode($registro[3]); $registro4utf8=utf8_encode($registro[4]); $registro5utf8=utf8_encode($registro[5]); $fticon=iconofiletype($registro4utf8); ?>