No, that's a good question.
Usually database connections (or any connection for that matter) follow a patter of establishing a connection, requesting something, recieving something, closing the connection.
In php,
you use mysql_connect("db_server_name", "user", "password");
This returns a connection "link".
Most people call it dblink or link or something like taht.
Most of the functions in PHP can remember the link that is being used, but you can also provide it.
Therefore, depending on which database you selected (there is also a function for that), you can either supply the connection link or not.
mysql_query($query, $link) is the same as
mysql_query($query) most of the time.
$link stands for the connection link to the database server.
Originally posted by Michiel
I hope I'm not asking a very stupid question now, but what is represented by the variable $link??
Michiel