$db_server = 'localhost';
$db_user = '';
$db_pwd = '';
$db_name = '';
$db_link = mysql_connect($db_server, $db_user, $db_pwd) or exit('Could not connect: ' . mysql_error());
$db = mysql_select_db($db_name, $db_link) or exit('Could not select database: ' . mysql_error());
//sélectionner une table
$res=mysql_query("SELECT * FROM table");
//parcourir les résultats
while ($s=mysql_fetch_object($res))
{echo $s->champs;}
//insérer des données
//modifier des données
$res=mysql_query("UPDATE table SET champs = "value");