We can connect Mysql Database with PHP using both Procedural and Object oriented style like below
$link = mysqli_connect("localhost", "username", "password", "dbofpcds");
$mysqli = new mysqli("localhost", "username", "password", "dbname");
and in old type of connectivity were
$link = mysql_connect("localhost", "username", "password");
mysql_select_db("database",$link);
Regards
Software Development Company
How do you connet mysql database with PHP ?
- chinmay.sahoo
- Little Oriya
- Posts: 5
- Joined: Dec 16th, '13, 10:40
- Location: Odisha
- Contact:
How do you connet mysql database with PHP ?
A Complete Software Development Services
webtechnologyofindia.com
webtechnologyofindia.com