shane18 Posted December 24, 2009 Share Posted December 24, 2009 Why when you use regular MySQL... you can do mysql stuff in a function no problem... but with MySQLi you gota include the dam link to it like this... $DB = new mysqli("localhost","username","password","database"); function BLAH($DB,$A,$B){ $blah = $DB->query("SELECT * FROM USERS"); } can someone explain the difference? Please thanks! !!MERRY CHRISTMAS!! Link to comment https://forums.phpfreaks.com/topic/186289-mysql-mysqli/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.