Jump to content

What is the best way to connect to my database with PDO


youngboy84

Recommended Posts

I am tring to learn about PDO people have said its easy and the best way to interact with the database, but im not finding it easy. can any help?

 

Should i have my connection in its own class and extend it to the rest of my classes or should i use a global variable to connect? or is there another way better?

 

i read up about the try and catch method not very good either. my database is mysql

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.