MySQL: mysql_connect() In the following example we store the connection in a variable ($con) for later use in the script.