Hi..
Im a newbie to PHP and am having trouble with the include statement.
Is it possible to use include to echo/print html back to the browser from within a php page ?
i.e.
the php page calls include 'somefile.php?arg=1'
the somefile.php then uses GET to get the arg and passes back a different table depending on the value. If i call directly from the browser the file works ok, but if i use include from within a php page nothing is returned.
any help appreciated ...
include question
Moderator: General Moderators
ah ha !
Jeez thanks Mark
Your reply was quicker than my php code !
Another thing i was doing wrong though was not using the full server path to the file - i just used 'somefile.php. Read the php documentation on include and saw that was missing too.
I'll use your tip on pre-setting the variable though
Thanks again
Your reply was quicker than my php code !
Another thing i was doing wrong though was not using the full server path to the file - i just used 'somefile.php. Read the php documentation on include and saw that was missing too.
I'll use your tip on pre-setting the variable though
Thanks again