How many ways are there to maintain $dbh (database handle) across all php files, so that once $dbh created, I can query and update database from any php file and any time, without having to log in.
1) apply $dbh global in every php file ? 2) apply $dbh in the parameter of the called function ? 3) ?
What other ways are there to, so as to query and update without ever having to log in again and which is better and simple.
Thanks for your input.
regards Clement