That is what I thought it would do.  A couple of suggestions:

$sql = "INSERT INTO agenda (nombre, direccion, telefono, email, pais,
comentario) VALUES ('.$_POST['$nombre'].', '.$_POST['$direccion'].',
'.$_POST['$telefono'].', '.$_POST['$email'].', '.$_POST['$pais'].',
'.$_POST['$comentario'].')";

OR

$nombre = $_POST['$nombre'];
$direccion = $_POST['$direccion'];
$telefono = $_POST['$telefono'];
$email = $_POST['$email'];
$pais = $_POST['$pais'];
$comentario = $_POST['$comentario'];

$sql = "INSERT INTO agenda (nombre, direccion, telefono, email, pais,
comentario) VALUES ('$nombre', '$direccion', '$telefono', '$email',
'$pais', '$comentario')";

There is no need for the \n in the SQL call.


-----Original Message-----
From: Luis A [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 8:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] TO Bryan LipscyRe: [PHP] i got a problem


HE show me this
INSERT INTO agenda (nombre, direccion, telefono, email, pais,
comentario) VALUES ('','','','','','')ĄTHANKS! WE HAVE RECEIVED YOUR
DATA.


i think he does not asimilate the $ on the variable VALUES (' $DATA,' )
----- Original Message -----
From: "Bryan Lipscy" <[EMAIL PROTECTED]>
To: "'Luis A'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 12:27 PM
Subject: RE: [PHP] i got a problem


> Try
>
> echo $sql;
>
> To check your sql before execution.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to