1. Install IBM Client Access on your NT machine
2. Add details of your AS400 to Client Access
3. Create a Client Access data source in ODBC
4. Use ODBC calls within PHP, for example:
        $connect = odbc_connect("AS400", "username", "password");
        $query = "SELECT free
                FROM stock
                WHERE part='$item'";
        $result = odbc_exec($connect, $query);
        $available      = odbc_result($result, 'free');
        echo($available);
        odbc_close($connect);

-- 
 @  James Lobley   |   Intranet Developer & Sysadmin
\/  ------------------------------------------------------
()  This message was written on 100% recycled spam



-----Original Message-----
From: mohamad taghlobi [mailto:[EMAIL PROTECTED]
Sent: 30 October 2003 22:56
To: [EMAIL PROTECTED]
Subject: [PHP] Connection AS400-Windows & PHP


I would like to establish a connection between AS400 - Windows NT and PHP,
to make requetes on data base AS400, from forms PHP. I do not know how to
make, could you help me?



---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail


This email is only intended for the person(s) to whom it is addressed and
may contain confidential information.  Unless stated to the contrary, any
opinions or comments are personal to the writer and do not represent the
official view of the company.  If you have received this e-mail in error,
please notify us immediately by reply e-mail and then delete this message
from your system.  Please do not copy it or use if for any purposes, or
disclose its contents to any other person.

We make every effort to keep our network free from viruses. You should 
independently check this e-mail and any attachments for viruses, as we 
can take no responsibility for any computer viruses that might be 
transferred by way of this e-mail. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to