ADOdb code inside of a function
Posted: Wed Jul 09, 2003 8:58 pm
I am new to writing functions in PHP, so please don't hate me cause I'm new. I have a function that I am calling in part of my code that has ADOdb code written in it to do database searches based on values passed to the function.
Here is my delema, I think that the function is running the ADOdb stuff prior to the function being called and thus my database search is not working. All other parts of the function work, but the ADOdb part seems to have already run before the function was called.
I know this is confusing but I guess my question is, can you make database calls inside of a function that execute after the function has been called? Not before?
Here is my delema, I think that the function is running the ADOdb stuff prior to the function being called and thus my database search is not working. All other parts of the function work, but the ADOdb part seems to have already run before the function was called.
I know this is confusing but I guess my question is, can you make database calls inside of a function that execute after the function has been called? Not before?