RE: [PHP-DB] ODBC again

From: Date: Thu, 05 Apr 2001 09:02:46 +0000
Subject: RE: [PHP-DB] ODBC again
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8256@lists.php.net to get a copy of this message
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:buitrago_fernando@hotmail.com] > Sent: Wednesday, April 04, 2001 11:47 PM > To: php-db@lists.php.net > 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: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#8256) next »