mysql connection that re-connects if it's been disconnected


/ Published in: PHP
Save to your folder(s)

usage is simple:
$result = mysqli_query($query,db_conn('local')); for instance.
if written in patterns, this should probably be a singleton, but I haven't bothered converting it - feel free to comment with your modification though!

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.