How to make database connection in php?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

Which function is used in php to delete a file?

0 Answers  


What is polymorphism in oop php?

0 Answers  


How do I add to the beginning of an array and find the number of elements in it?

1 Answers   Rushmore Consultancy,


How to find out, how a user visited a particular page?

4 Answers   Yahoo,


What are the Formatting and Printing Strings available in PHP?

0 Answers  


How can we get the browser properties using PHP?

7 Answers  


Which is the best php framework for a beginner?

0 Answers  


How to download and install php on windows?

0 Answers  


Who is the father of PHP and explain the changes in PHP versions?

15 Answers   ADISoft Tech, Genpact, PropTiger, TWA,


class Database { public static $_instance; public static function getInstance() { if(!isset(self::$_instance)) self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME); print_r(self::$_instance); return self::$_instance; } } can any one explain "self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME);" this line

1 Answers  


my english is not too good then what we apply for a php programer post

0 Answers  


What is php compared to html?

0 Answers  


Categories