Skip to content

Instantly share code, notes, and snippets.

@3on
Created February 17, 2018 07:59
Show Gist options
  • Save 3on/7802a73e402784c4ea155c2962d62667 to your computer and use it in GitHub Desktop.
Save 3on/7802a73e402784c4ea155c2962d62667 to your computer and use it in GitHub Desktop.
buzz mysqli hacks
<?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