/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function connectDb() { if ($conn = @new mysqli(WEBDOMAIN, DEFUSERNAME, DEFDBPWD, DEFDBNAME)) return $conn; else return false; }
URL: http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/