PHP ODBC
| From: | LittleGuru | Date: | Thu, 25 May 2000 02:07:48 +0000 |
| Subject: | PHP ODBC | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-87@lists.php.net to get a copy of this message | ||
: 6 of 19 Move | Copy this message to:
Delete | Reply | Reply to all | Forward | Bounce | Save as | Add to contacts
Back to
Date Wed, 24 May 2000 15:00:19 +0200
To LittleGuru <tabarry@email.com>
From Ondrej Kuchar <kuchar@softwaretrend.com>
Subject Re: [PHP-DB] ODBC Connection
Parts (source)
Hi !
Last week I tested PWS x PHP4 RC2 x ODBC x SQL Server. This example went
there.
Now I test it on PWS x PHP4 RC2 x ODBC x MS Access and example is still ok.
So I hope that this help You.
<?
file://connect to dbase
$conn= odbc_connect("test", "", "");
if($conn)
echo "I'm in!! Yupiiiii ;o)";
else
echo "Something is bad. :-(";
file://query and execute
$result= odbc_exec($conn, "INSERT INTO test (id, name) VALUES (7,
'hello')");
odbc_free_result($result);
odbc_close($conn);
?>
bye
Ondrej Kuchar
----- Original Message -----
From: LittleGuru <tabarry@email.com>
To: <php-db@lists.php.net>
Sent: Tuesday, May 23, 2000 9:02 PM
Subject: [PHP-DB] ODBC Connection
> Hello There!
>
> I am an ASP developer and is my second day in the PHP world. I want to
> connect to my MS Access database using ODBC driver in PHP. Can anyone
please
> give me just an example of how to insert a record.
>
> Thanks and regards
>
> Tahir Barry
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
Delete | Reply | Reply to all | Forward | Bounce | Save as | Add to contacts
Back to
Move | Copy this message to: