function includeMySQLFile() { if(UseNewMysqlLib()) return "dbconnection.my.mysqli.php"; else return "dbconnection.my.mysql.php"; }
function db_addslashes($str) { global $conn; if (UseNewMysqlLib()) return mysqli_real_escape_string($conn, $str); else return mysql_real_escape_string($str); }
function includeMySQLFile_db() { //checking mysqli extension if (UseNewMysqlLib()) return "dbinfo.my.mysqli.php"; else return "dbinfo.my.mysql.php"; }
function add_mysql_binaryslashes($str) { global $conn; if (UseNewMysqlLib()) { return "'" . mysqli_real_escape_string($conn, $str) . "'"; } else { return "'" . mysql_real_escape_string($str) . "'"; } }