Por lo visto te debería mandar un error de sintáxis en tu consulta SQL, la comparación debes hacerla con nom_encuesta = '$n_resp', para siguientes preguntas intenta poner antes error_reporting(E_ALL) al inicio de tu script o ver el error que te manda MySQL con mysql_error (
http://www.php.net/mysql_error).
Código PHP:
$resul=mysql_query("SELECT * FROM nom_encuesta WHERE (nom_encuesta = '$n_resp')",$conexion);
while ($registro = mysql_fetch_array($resul)){
$n_resp1 = $registro[num_encuenta];
}