Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/12/2003, 09:11
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Duda con insertar en SQL Server

Hola porque esto me da error:
Código PHP:
<?php
 
include_once("../includes/config.inc.php");
 if((isset(
$_GET['modulos'])) && ($_GET['modulos']=="librovisitas")){
  if((isset(
$_GET['opcion'])) && ($_GET['opcion']=="firmar")){
   
conectadbsql();
   
$sqlquery "INSERT INTO librodevisitas (id,nombre,ecorreo,sitioweb,pais,comentarios,imagen,fecha,publicado) VALUES('".$_POST['name']."','".$_POST['email']."','".$_POST['url']."','".$_POST['pais']."','".$_POST['comentarios']."','".$_POST['image']."','31/12/2003','0')";
    if (
mssql_query($sqlquery)){
        echo 
"Insertado";
    }else{
        echo 
"No insertado";
    }
  } else{
   echo 
"Error";
  }
 }
?>
Me da este error
Cita:
Warning: mssql_query(): message: There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. (severity 15) in c:\archivos de programa\apache group\apache\htdocs\jclub\modules\insert.php on line 7 No insertado
__________________
Ing. Reynier Pérez Mira