tengo un pequeño problema yes q en un panel el sistema no me actualiza la info y no entiendo q pasa pues esto ya lo he hecho bastante antes...
aqui les dejo el codigo
Código PHP:
   <?php //require_once('includes/sesion.php'); ?>
<?php require_once('Connections/orocauchos.php'); ?>
<?php
include_once("fckeditor/fckeditor.php") ;
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
 
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
 
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
 
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
  $updateSQL = sprintf("UPDATE novedades SET titulo=%s, contenido=%s WHERE id=%s",
                       GetSQLValueString($_POST['titulo'], "text"),
                       GetSQLValueString($_POST['contenido'], "text"),
                       GetSQLValueString($_POST['id'], "int"));
 
  mysql_select_db($database_orocauchos, $orocauchos);
  $Result1 = mysql_query($updateSQL, $orocauchos) or die(mysql_error());
 
  $updateGoTo = "listado_not.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $updateGoTo));
}
$colname_Recordset1 = "1";
if (isset($_GET['id'])) {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_orocauchos, $orocauchos);
$query_Recordset1 = sprintf("SELECT * FROM novedades WHERE id = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $orocauchos) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Panel Administrativo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo16 {color: #FFFFFF}
-->
</style>
<link href="../../css2/estilo.css" rel="stylesheet" type="text/css">
 
<style type="text/css">
<!--
.Estilo17 {color: #FF0000}
.style1 {color: #000000}
-->
</style>
<link href="css/estilo.css" rel="stylesheet" type="text/css">
</head>
 
<body onLoad="MM_preloadImages('images/volver2.jpg')">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/header_admin.jpg" width="500" height="150" /></td>
  </tr>
  <tr>
    <td><div align="center" class="textoFactura">Actualizar Noticias</div></td>
  </tr>
  <tr>
    <td><form action="<?php echo $editFormAction; ?>" method="post" name="form1" onSubmit="MM_validateForm('descripcion','','R');return document.MM_returnValue">
        <br>
<table align="center">
                  <tr valign="middle">
                    <td width="98" height="21" align="left" nowrap class="textoResto">Nombre:</td>
                    <td width="278" align="left"><input name="titulo" type="text" class="textoResto" id="titulo" value="<?php echo $row_Recordset1['titulo']; ?>"></td>
                  </tr>
                  <tr valign="middle">
                    <td align="left" nowrap class="textoResto">Descripcion:</td>
                    <td align="left"><span class="textoINDEX">
                      <?php
$oFCKeditor = new FCKeditor('contenido');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = $row_Recordset1['contenido'];
$oFCKeditor->Create(); 
?>
                    </span></td>
                  </tr>
                  
                  <tr valign="middle">
                    <td align="left" nowrap> </td>
                    <td align="left"><input name="submit" type="submit" class="todopanel" value="Actualizar">                      </td>
                  </tr>
        </table>
                </form></td>
  </tr>
  <tr>
    <td><table width="500" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td width="50%" align="center"><a href="index.php" target="_self"></a></td>
        <td width="50%" align="right"><a href="index.php" target="_self"><img src="images/volver1.jpg" name="Image1" width="57" height="11" border="0" id="Image1" onmouseover="MM_swapImage('Image1','','images/volver2.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td> </td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>    Gracias de antemano
 
 



