Salut
Voila j’ai entré les fichier de ma base de donnée MySQL aux serveur quand j’essais de testez si ma base de donnée existe ça ma donne des erreurs
Voici les erreurs
Et voici le code que j’ai testé
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'SERVEUR16' (using password: NO) in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 2 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 3 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 3 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 13 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 13 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 14 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 14 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 16 Warning: mysql_close(): no MySQL-Link resource supplied in C:\Inetpub\vhosts\fes-immo-riad-resa.com\httpdocs\teste.php on line 26
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <?php mysql_connect("nom de mon domaine", "mon logine", "passeword de mon site"); // Connexion à MySQL mysql_select_db("med"); // Sélection de la base mateo21 mysql_query("INSERT INTO `med`.`evo` ( `nom` , `prenom` , `age` ) VALUES ( 'amine', 'evol', '13' ); "); $reponse = mysql_query("SELECT * FROM evo"); while ($donnees = mysql_fetch_array($reponse) ) { ?> <p> <?php echo $donnees['prenom']; ?> <?php echo $donnees['nom']; ?> : <em><?php echo $donnees['age']; ?></em> </p> <?php } mysql_close(); // Déconnexion de MySQL ?>
Partager