Comment intérroger un système AS400 en PHP ?
J'ai trouvé ce code sur le Net mais je pense que je doit être trop nul pour bien configurer le reste
<?php
$Connection = odbc_connect("<IP>" ,"<UserName>","<Pwd>" );
$Query_Str = "
SELECT
AS400_TAB.FIELD1 AS ALIAS_1
AS400_TAB.FIELD2 AS ALIAS_2,
AS400_TAB.FIELD3 AS ALIAS_3,
AS400_TAB.FIELD4 AS ALIAS_4,
AS400_TAB.FIELD5 AS ALIAS_5,
AS400_TAB.FIELD6 AS ALIAS_6,
AS400_TAB.FIELD7 AS ALIAS_7,
AS400_TAB.FIELD8 AS ALIAS_8
FROM <AS400 system name>.<library name(if any)>.<table name> AS400_TAB WHERE (AS400_TAB.FIELD7)='211002' ORDER BY ALIAS_1 ";
?>