Include Once ?
Posted: Wed May 27, 2009 5:25 pm
Greetings all, I'm a newcomer to the forum, however been with PHP for a while and have come across this problem. The code returns the following errors:
Many thanks,
Doc
Code: Select all
<?php
...
include_once("page/add.php?id=".$id);
...
?>The thing is when I remove everything past the '?' everything works as it should. Can I not use the question mark with an include, and if not can someone suggest a better way of going about this?Warning: include_once(page/add.php?id=3) [function.include-once]: failed to open stream: No such file or directory in /asset/function.php on line 18
Warning: include_once() [function.include]: Failed opening 'page/add.php?id=3' for inclusion (include_path='.:/usr/local/php5/lib/php') in asset/function.php on line 18
Many thanks,
Doc