|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-04-25 00:27 UTC] Domlane at hotmail dot com
$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??
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
Yes it is correct! As there only are two fields in my table and that I try to fill them all, I can work it this way I could have use "INSERT INTO test (field1, field2) VALUES ('a', 'b')" "INSERT INTO test VALUES ('a', 'b')" work the same way$BD = odbc_connect ('BdTest', SQL_CUR_USE_DRIVER); should be read like $BD = odbc_connect ('BdTest', '', '', SQL_CUR_USE_DRIVER); but still not working..