doucie Posted March 26, 2007 Share Posted March 26, 2007 <?php include("my_functions.php"); ?> <div id="box"> <?php get_all();?> </div> My functions is being used twice, once for the include and once for the function call. Any ideas? Link to comment https://forums.phpfreaks.com/topic/44400-function-used-twice-in-error/ Share on other sites More sharing options...
The Little Guy Posted March 26, 2007 Share Posted March 26, 2007 Im not sure what your problem is, please explain more Link to comment https://forums.phpfreaks.com/topic/44400-function-used-twice-in-error/#findComment-215619 Share on other sites More sharing options...
doucie Posted March 26, 2007 Author Share Posted March 26, 2007 OK, I have a simple echo statement in the function get_all, which, as you can see i've called only once, however, the echo statement is on the page twice! Link to comment https://forums.phpfreaks.com/topic/44400-function-used-twice-in-error/#findComment-215623 Share on other sites More sharing options...
doucie Posted March 26, 2007 Author Share Posted March 26, 2007 I've just figured it out. I'm thick. I've left a function call in the function file as well. Der. Thanks anyway Link to comment https://forums.phpfreaks.com/topic/44400-function-used-twice-in-error/#findComment-215626 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.