Friday, September 27, 2019

connect to MySqli using class

Today I want to show you guys how to connect to mysqli using class. You need to have 3 files.

config.php (your database connection)



fn.php (act as controller)



index.php (this is where you files are)



I'm using this code when i have to convert the old system in PHP 5.2 to PHP 7.1..
Amazingly it works.

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...