$conexio=mysql_connect("localhost","root","") or die("Fallo al conectar");mysql_select_db("exercicis",$conexio) or die("Fallo al establecer la bbdd");