Sr. PHP Programmer Question:
Download Questions PDF

How will you connect a MySql database using PHP?


PHP provides mysql_connect function to open a database connection.

connection mysql_connect(server,user,passwd,new_link,client_flag);

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what is the difference between Session and Cookie?How to Retrieve a Cookie Value in PHP?