Mysqli is not working in php version 7

## By using this function we can reduce errors and can work using mysql instead of mysqli. <?php if (PHP_VERSION_ID > 59999) { function mysql_connect($a,$b,$c,$d=null) { return mysqli_connect($a,$b,$c,$d); } function mysql_query($a,$b) { return mysqli_query($b,$a); } function mysql_affected_rows($a){return mysqli_affected_rows($a);} function mysql_close($a){return mysqli_close($a); } function mysql_fetch_assoc($a) { return mysqli_fetch_assoc($a); } function mysql_free_result ($a) { mysqli_stmt_free_result($a); } function … Read moreMysqli is not working in php version 7