ha ocurrido un errorha ocurrido un errorha ocurrido un errorha ocurrido un error
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-includes\l10n.php:142) in C:\xampp\htdocs\wordpress\wp-content\plugins\pruc\pruc.php on line 428
Código PHP:
$updateGoTo = "admin.php?page=sub-page";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
$colname_editar1 = "-1";
if (isset($_GET['id'])) {
$colname_editar1 = $_GET['id'];
}
mysql_select_db($database_wordpress, $wordpress);
$query_editar1 = sprintf("SELECT * FROM wp_productos WHERE id = %s", GetSQLValueString($colname_editar1, "int"));
$editar1 = mysql_query($query_editar1, $wordpress) or die(mysql_error());
$row_editar1 = mysql_fetch_assoc($editar1);
$totalRows_editar1 = mysql_num_rows($editar1);