mysqli_error() expects parameter 1 to be mysqli, null given in own db class
This isn’t a WordPress question it’s a PHP question, but probably what’s happening is that you need to declare global $con everywhere before you both use and set $con. So in your sql.inc.php put a global $con; before you set it the first time. Then obviously make sure you do global con; before every place … Read more