Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/08/2008, 16:24
Avatar de Capimaster
Capimaster
 
Fecha de Ingreso: agosto-2004
Mensajes: 494
Antigüedad: 19 años, 9 meses
Puntos: 2
Respuesta: Duda sobre formulario

Es que intentente hacer esto.... pero me marca error....


Código PHP:
$editFormAction $_SERVER['PHP_SELF'];
if (isset(
$_SERVER['QUERY_STRING'])) {
  
$editFormAction .= "?" htmlentities($_SERVER['QUERY_STRING']);
}

$ruta $_FILES['fichero']['name'];
if ((isset(
$_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  
$insertSQL sprintf("INSERT INTO noticias (id, categoria, titulo, imagen, ruta, resumen, contenido, escritor, `date`) VALUES (%s, %s, %s, %s, '$ruta', %s, %s, %s, %s)",
                       
GetSQLValueString($_POST['id'], "int"),
                       
GetSQLValueString($_POST['categoria'], "text"),
                       
GetSQLValueString($_POST['titulo'], "text"),
                       
GetSQLValueString($_POST['imagen'], "text"),
                       
GetSQLValueString($_POST['ruta'], "text"),
                       
GetSQLValueString($_POST['resumen'], "text"),
                       
GetSQLValueString($_POST['contenido'], "text"),
                       
GetSQLValueString($_POST['escritor'], "text"),
                       
GetSQLValueString($_POST['date'], "date"));
                       


  
mysql_select_db($database_portadas$portadas);
  
$Result1 mysql_query($insertSQL$portadas) or die(mysql_error()); 
a la hora de intentar correrlo me dice que el campo resumen va NULL
__________________
http://www.elcapitolio.com.mx - Ocotlán, Jalisco, México