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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]