it would be really great if any one of you could help me out difference between the following to connection to database

1 $connection = DB::connect("mysql://$db_username:$db_password@$db_host/$db_database");


2 $con=mysql_connect(servername,username,password);

I have never seen connection 1's method before. To be honest, it doesn't make sense to me. You sure this is PHP?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.