How to connect to MySql

hi, i have a stupid question, but how to connect to mysql?

e.g. on bplaced im named michat34.
i have created a database ‘michat34_ikariam’.

so how should my code look like?

mysql_connect(‘michat34.bplaced.net’, ‘michat34_ikariam’, ‘PASSWORD’);
mysql_select_db(‘michat34_ikariam’)

its propably incorrect because throws some kind of error.
so how should right code look like? greetings

Hello,
!coffee

Use localhost for the server and not michat34.bplaced.net :wink:

thanks, it works. and this is strange O.o shouldn’t be really the name of server my domain not localhost? could you explain me how does it work?

The MySQL Server is running at the same system as the web and FTP (etc) server.

thanks :wink: