I have a stored procedure GETSTORES(#####) which requires a five digit account number and returns all stores for that account. I need to call that stored procedure from php using an ODBC connection. I can connect to the 400 and query directly but want to use the stored procedure to cut down on traffic.
I can't seem to find anything that works.
PHPIBM System i
Last Comment
Richardetal
8/22/2022 - Mon
Member_2_276102
I can't seem to find anything that works.
What goes wrong? Is there an error message?
What platform is PHP running on? What i5/OS version is running?
Can you show us a sample of your PHP coding?
Tom
Richardetal
ASKER
iSeries is V5R4
PHP 5.3.1
I'm really at the point of trying to figure out how to construct the command in php. I've found examples like:
$result=runStoredProc("exec GETSTORES(1550)");
where GETSTORES(#) is the name of my stored procedure.
What goes wrong? Is there an error message?
What platform is PHP running on? What i5/OS version is running?
Can you show us a sample of your PHP coding?
Tom