include question
Posted: Tue Mar 09, 2004 1:54 pm
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 ...
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 ...