Probléme de connexion a ma base de donné

seb -  
 seb -
Bonjour,

j'ai créé une base de donné sur php Myadmin mais je narrive pas a me connecter en php voici mon code ci dessous urgent merci d'avance ;)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
   <head>
       <title>Base</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   </head>
   <body>
   
   
   
   
   
   <?php
mysql_connect("sql.olympe-network.com", "toutout", "mariposa"); 
mysql_select_db("toutout");


mysql_close(); 
?>

   
   
   
   </body>
</html>
A voir également:

2 réponses

Utilisateur anonyme
 
Bonsoir,
Et c'est quoi les erreurs ?
Rajoute :
or die(mysql_error());

Comme ceci :
mysql_connect("sql.olympe-network.com", "toutout", "******") or die(mysql_error());
mysql_select_db("toutout") or die(mysql_error());

****** à remplacer par le mot de passe
0
seb
 
merci mais g réussi a+ ;)
0