if($id==1) echo "Anterior"; else echo "Anterior"; ?> Rehabilitación - Foto if($id==52) echo "Siguiente"; else echo "Siguiente"; ?>