Probleme php news

Fermé
oasis - 23 juil. 2008 à 14:46
 oasis - 23 juil. 2008 à 14:54
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
A voir également:

3 réponses

lilaaa Messages postés 106 Date d'inscription mercredi 16 juillet 2008 Statut Membre Dernière intervention 21 mai 2009 7
23 juil. 2008 à 14:51
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
lilaaa Messages postés 106 Date d'inscription mercredi 16 juillet 2008 Statut Membre Dernière intervention 21 mai 2009 7
23 juil. 2008 à 14:53
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
je suis sur olympe network
0