Re: Put data in a odbc connect
| From: | Richard Lynch | Date: | Sat, 13 Jan 2001 23:55:01 +0000 |
| Subject: | Re: Put data in a odbc connect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34421@lists.php.net to get a copy of this message | ||
You do it just like you would do a select:
$query = "insert into blah(field1, field2) values($value1, '$value2')";
odbc_exec($connection,$query) or die(odbc_error());
There's nothing special about any particular kind of query you send to the
database.
Disclaimer: I don't know that I got the function names right, or even that
odbc_error exists...
----- Original Message -----
From: Diego Pérez Rández <webzitos@terra.es>
Newsgroups: php.general
Sent: Saturday, January 13, 2001 4:23 AM
Subject: [PHP] Put data in a odbc connect
>
> Hi to all:
>
> I want to put data in a database that i access by a odbc connect. I
> can obtain data of the odbc connect, but i can't put data in it.
>
> How i can do it?.
>
> Thanks.
>
> Best Regards,
>
> Diego
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>