I’m developing a script that connects to a MySQL database, which for the first invocation of the script is successful, however I need to re-call the script for another database query. On subsequent invocations of the script the database connection is lost.
Is there a PHP command or method for maintaining the link throught the script process, no matter how many times the script calls itself? I’ve looked at persistent connections and can’t see the methodology for doing so.
Thanks