hai i am sathiya,
i had confussion about this program...................
please give suitable solution for this program............

a. Write a php function to accept server, database name, Username Password and create a Database connection string of the
"server=myserver;dbname=mydbname;username=myuser;passwd=mypasswd"

b. Write a function to convert the connection string into a dictionary

c. Write a function convert the connection dictionary into connection string.

Wow, that's kind of confusing. What do you mean by a dictionary?

No one here will write your code for you but we will point you in the right direction.

Here is a good place to start (you'll want to make sure you look at the "POST & GET" section).

As for connecting the info together when you have it, it's as simple as:

$connected_string = "server=$myserver;dbname=$mydbname;username=$myuser;passwd=$mypasswd";
//or alternatively:
$connected_string = 'server='.$myserver.';dbname='.$mydbname.';username='.$myuser.';passwd='.$mypasswd;
//where the info you want is held in the variables $myserver, $mydbname, etc.
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.