Checkout the examples how to connect to MySQL using mysql_connect.
i have checked the examples and there seems to be some enlightment now,but still the issue remains,on the issue of the parameters,when i try to use my own host name,username and password ,there is an error that those parameters are not recognised and when i dont pass any parameters ie will be assuming that it uses the default parameters still there is this error CANNOT CONNECT USING ODBC@localhost .what could be the problem !!!!where do i first set those parameters so that there will recognised,and what do you do so that the default parameters wil be recognised