Re: MSACCESS Insert/Updates via ODBC
| From: | Richard Lynch | Date: | Thu, 02 Aug 2001 04:36:20 +0000 |
| Subject: | Re: MSACCESS Insert/Updates via ODBC | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60824@lists.php.net to get a copy of this message | ||
> know how to implement functions to Insert/Update data registers. I am a
Not sure you're asking what I'm answering, but...
INSERT/UPDATE are queries, just like SELECT.
So do the same thing you would do for SELECT.
odbc_exec("select * from foo");
odbc_exec("insert into foo(a) values('$a')");
odbc_exec("update foo set a = '$a'");
A query is a query.
The only catch is that the USER you connect as must have
insert/update/whatever permission.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm