× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Maybe I'm missing something here but shouldn't it be

$qUpdateCustomer = "CALL NEWJCLIB/PROC_JC15_ALL( )";
$request = i5_prepare( $qUpdateCustomer );
if( !$request ) var_dump( i5_error( ) );
$procExec = i5_execute( $request );
if( !$procExec ) var_dump( i5_error( ) );
$stuff = i5_fetch_assoc( $procExec ); <-- Was
i5_fetch_assoc( $request );
var_dump($stuff) ;

Alternatively, you could try accessing it using an abstraction layer if
you're familiar with OOP.
http://github.com/kschroeder/iSeries-PHP-toolkit. (Horrible pandering
my own code, I know :-))


Kevin Schroeder
Technology Evangelist
Zend Technologies, Ltd.
www.zend.com
www.twitter.com/kpschrade
www.eschrade.com










-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Tom Deskevich
Sent: Thursday, April 15, 2010 6:31 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] MAJOR information leaked out about the future of PHP
inmeeting I attended.

Ok, it is pretty bad to try spam tactics to YALL to get you to respond
to me.

I still cannot get my stored procedure to run in PHP.

Just tell me to get lost, get a life, give up PHP or something. That way
I know to quit posting here about this.

Here is my code:
$qUpdateCustomer = "CALL NEWJCLIB/PROC_JC15_ALL( )";
$request = i5_prepare( $qUpdateCustomer );
if( !$request ) var_dump( i5_error( ) );
$procExec = i5_execute( $request );
if( !$procExec ) var_dump( i5_error( ) );
$stuff = i5_fetch_assoc( $request );
var_dump($stuff) ;

A connection IS established. I proved that by calling a program that I
know works before this.

ALSO, I can CALL the SAME stored procedure from VB.NET and it WORKS.

I can ALSO call it from iseries navigator just fine.

This IS ALL I get on the var_dump:
array(0) { }

It passes all the checks along the way in the code.

ALSO. It does not appear that the stored procedure is even getting
called on the AS/400 from PHP.

The error log does not show any abnormalities

What can I try? What can I check? Who can I ask?

Or as the late great American hero Admiral Jeremiah Denton once said,
why am I here?


Tom Deskevich
INFOCON Corporation
Phone 814-472-6066
Fax 814-472-5019


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.