OK, I'm really new to PHP and this is one of the first times I've tried to use it. On my site I have a table I want content to be entered to, and be changed by links on the side, simple. so I wrote this;
<?php
if (!$section)
include "/var/www/htdocs/news/news.txt";
include "$section";
?>
I wrote the if part so it would default to news.txt is nothing is entered for section. The only problem now is when it defaults to news.txt I also get this error:
Warning: Failed opening '' for inclusion (include_path='') in /var/www/htdocs/index.php on line 88
Now this is obviously from it trying to load section when nothing is there. How do I fix this, there obviously some code or something I'm missing here. Any help would be apreciated, thanks!