Probleme php news

oasis -  
 oasis -
Bonjour, je veus creer sur mon site des news que tout le monde peut laisser mais probleme a chaque fois ca marque ca :
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'sql.olympe-network.com ' (3) in /www/oasis/ajouter/admin/rediger_news.php on line 17

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /www/oasis/ajouter/admin/rediger_news.php on line 18

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/oasis/ajouter/admin/rediger_news.php on line 18

Voici la page pour creer des news : http://oasis.o-n.fr/ajouter/admin/rediger_news.php

Merci

3 réponses

  1. lilaaa Messages postés 107 Date d'inscription   Statut Membre 7
     
    Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host-------> ou tu n as pas specifié le host ou t as mis un host erroné ,si tu travaille ton application sur ta propre machine mets localhost
    0
  2. lilaaa Messages postés 107 Date d'inscription   Statut Membre 7
     
    voilà un exemple de connexion a la base :
    $user="root";
    $pwd="";
    $host="localhost";

    mysql_connect($host, $user,$pwd);
    mysql_select_db("test");

    ma base s appelle test ,et j ai pas de mot de passe
    0