@mysql function calls pretty much deprecated in php. Moved all the code to
mysqli based. Pretty straightforward. e.g
$f=@fopen("authinfo","r",true);
$auth=explode(" ",@fgets($f));
@fclose($f);
setDB($mysqli = new mysqli($auth{3},$auth{0},$auth{1},$auth{2}));
if ($mysqli->connecterror) {
die('Connect Error (' . $mysqli->connecterrno . ') '
. $mysqli->connecterror);
}
--
My Emacs Files At GitHub
No comments:
Post a Comment