hey there all.... so ive been looking around the forums and i cant seem to figure this out, so im hoping one of you will be able to help me
i know that you can write the function anywhere in the same .php file and use it anywhere in that file..... what im wanting to do is write a function and have access to it in whatever .php file im using.... for example im gonna be writing a function that does a search on my SQL DB..... this search ability is going to be accessible on many different pages on the site im developing, and i dont want to have to write it each time for each page it is on
can i put the search function in a file called search_function.php and then just include this file (include("seach_function.php")😉 each time i want to run the function?
thx for any help