Tag Archives: mysqli

Check if PDO support else use mysqli() php

Questions: I have my site using mysqli. Now I learnt PDO, and want to implement it. The question is: How do I check if the server has Pdo Support using php to connect? if(PDO support){ //connect with pdo //use pdo functions } else{ //connect with mysqli // use mysqli functions } Answers:

OO PHP mysqli database connection

Questions: I have an issue with the code below, so I have created a database connection and running it in CMD appears to be working fine, but I am not 100% how to test it out ? Can someone please point if out if its fine, Im still a newbie in PHP <?php class databaseConnection… Read More »