It's hard to say since I'm not sure what your code looks like now.
In theory, moving require('connection.php') and establishing the connection before you try to use the i5_data_area_read function should solve your original problem assuming there are no other errors.
I assume you are not seeing any errors on screen. Have you tried looking at the php error log?
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Tom Deskevich
Sent: Thursday, February 04, 2010 10:47 AM
To: 'Web Enabling the AS400 / iSeries'
Subject: [WEB400] Help trying to display a PHP variable within HTML tags connection is not made
My connection is not made yet.
Don't know why I need this. I just key my commands before starting my AS/400
5250 session and they work just fine.
JUST KIDDING....!
How do I do this?
Move all my HTML stuff down after my connection code?
I tried moving the connection code up, but it only shows the first heading,
something is wrong there.
Any guidance would be appreciated.
Tom Deskevich
As an Amazon Associate we earn from qualifying purchases.
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.