Blackout. This is basics.
I have a function that I'd like to call on some of the pages. Do i need to include it in each page? How do i call it?
Yes, you include it in whatever scripts that will be using it.
To call it is basically
$return_value = function_name($parameter1,$parameter2,...);
Declare the function on a .inc file and use require to load it on all pages.
Greetings,
Blag :evilgrin:
it doesnt really need to be a .inc file and also if its going to be that make it .inc.php so that no user can view the source code.