Problème erreur codage ?

Toxiid

Graphiste
Premium
Inscription
17 Avril 2012
Messages
840
Réactions
212
Points
20 158
J'ai bien remplis le localhost , mdp , pseudo etc mais cela ne fonctionne pas

<?php
/* À remplir pour vos tests.*/
mysql_connect('', '', 'mdp')or die(mysql_error()); /* exemple 'localhost'; 'pseudo'; 'mdp'*/
mysql_select_db('t')or die(mysql_error()); /* le nom de la base de donner*/



?>

cela m'affiche ceci dans mon site :

Notice: Undefined index: conect_choot in /public_html/index.php on line 3

Fatal error
: Uncaught Error: Call to undefined function mysql_connect() in /public_html/pass.php:3 Stack trace: #0 /public_html/pagede.php(8): include() #1 /public_html/index.php(9): include('/public_html/pa...') #2 {main} thrown in /public_html/pass.php on line 3
 
Haut