<p>In this block, we will try to tell you about connecting to the database with OOP, that is, English object-oriented programming or Turkish Object Oriented Programming, as our language turns.First of all, it is worth mentioning that you can find many resources about what OOP is, but the point you should never forget is that OOP java, which is used in many places, is a language that will not bore your site, which we learned in schiz pdo, which is really shortening your codes...I assume that you have Sublime Text and Appserv installed on your computer, we will blog about these programs separately if necessary.Our First Page will take us to the dbconfig.php page, which will be the key to our resource in the database; This page will be your key to access the database.Then we can open another page called class.crud.php and see that the connection returns positively and negatively with the db=new PDO ('mysql: host ='. $ this-> dbhost. '; dbname ='. $ this-> dbname. '; charset=utf8', $ this-> dbuser, $ this- > dbpass); echo "Connection Successful";} catch (Exception $e) { die ("Connection Failed:". $ e- >getMessage ()); } }? > try catch method. As a result, if echo works, your connection will return successfully…</p>