shouldn't that be:
$result1 = odbc_prepare($conn, "SELECT * FROM PERSONAS WHERE email =
'$v_mail'");

you have your double quotes at the end in the wrong place.
they should be before the ") not after )"

daevid.com

> -----Original Message-----
> From: Fernando Buitrago [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 11:47 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] ODBC again
>
>
> My code is:
>
>   $conn = odbc_connect("encuneweb","","");
>   $result1 = odbc_prepare($conn, "SELECT * FROM PERSONAS WHERE email =
> '$v_mail')";
>   if (!odbc_execute($result1))
>
>     echo "nuevo usuario";
>     $insertar_persona = "INSERT INTO Personas (Nombre, Apellido1,
> Apellido2,
> mail, telefono1)           VALUES('$v_nombre', '$v_apellido1',
> '$v_apellido2', $v_mail)" );
>
> The  line number 45 is:
> The second line ($result1=odbc_prepare.........
> display the following message:
> Parse error: parse error in C:\Sistemas\encune_web\registro.php on line 45
>
> Why.
>
> Thanks and regards
>
> fernando
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to