Buenas tardes, me da el siguiente error al realizar un header que en el servidor local me funciona bien y cuando lo subo al servidor me lo da:
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\xn--electrodiseo-khb.es\httpdocs\Wedserver\Connections\conexion.php :2) in C:\Inetpub\vhosts\xn--electrodiseo-khb.es\httpdocs\Wedserver\actualizar_aparatos.php on line 61
Y en la linea 61 del cod tengo
header("Location:$updateGoTo");
Código:
mysql_select_db($database_conexion, $conexion);
$Result1 = mysql_query($updateSQL, $conexion) or die(mysql_error());
$updateGoTo = "menu3.php?id=" . $_POST["NUM_USUARIO"];
header("Location:$updateGoTo");
exit;
Gracias y un saludo