Jump to content

MySQL & MySQLi


shane18

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.