Bug #10484: Problem with insert in ODBC
| From: | Domlane at hotmail dot com | Date: | Wed, 25 Apr 2001 04:27:18 +0000 |
| Subject: | Bug #10484: Problem with insert in ODBC | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52343@lists.php.net to get a copy of this message | ||
From: Domlane@hotmail.com
Operating system: Win2000
PHP version: 4.0.4pl1
PHP Bug Type: ODBC related
Bug description: Problem with insert in ODBC
$BD = odbc_connect ('BdTest', SQL_CUR_USE_DRIVER);
$SQL = "insert into test values ('a', 'b')";
$TabUser = odbc_exec($BD, $SQL);
this don't work...nothing had been added in the table test
$BD = odbc_connect ('BdTest '', SQL_CUR_USE_DRIVER);
$SQL = "select * from Utilisateur where Nom_utilisateur = '$Nom' and Mot_de_passe =
'$Pass'";
$TabUser = odbc_exec($BD, $SQL);
This work fine!
How should i use "insert" statement in order to make it works??
--
Edit Bug report at: http://bugs.php.net/?id=10484&edit=1