Thanks again for the reply, but I think I have some of the basics wrong.
I created a page (cNews.php) with the script that creates two variables ($cNewsContent and $cUserNewsContent) and assigns values to them
Then put an include in index.php 'include(cNews.php")'
now, if I write "echo $cNewsContent;" in index.php, the correct data shows at the top of index.php, but I want to be able to call that variable in other places.
Was indexphp the wrong place for ' include(cNews.php")'
thanks
Stephen
|