Created
February 17, 2018 07:59
-
-
Save 3on/7802a73e402784c4ea155c2962d62667 to your computer and use it in GitHub Desktop.
buzz mysqli hacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mysql_real_escape_string($str) { | |
return $str; | |
} | |
function mysql_query($sql) { | |
return mysqli_query(Mysql::$link, $sql); | |
} | |
function mysql_fetch_assoc($result) { | |
return mysqli_fetch_assoc($result); | |
} | |
class Mysql | |
{ | |
public static $link; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment