bonsoir
une fonction me permettant de recuperer l'id d'un membre me retourne des erreurs :
fonction en question :
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 <?php mysql_connect("localhost","root",""); mysql_select_db("digital"); function user_id($username) { $sq="SELECT idmin FROM admin WHERE login='".$username."'"; echo $sq; $result=mysql_query($sq) or die(mysql_error()); $q= mysql_fetch_assoc($result); if($result && $q >0) { return true; } } mysql_close(); ?>
le message d'erreur affiché :
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\digital\fonction.php on line 10
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\digital\fonction.php on line 10
Access denied for user 'ODBC'@'localhost' (using password: NO)
je ne sais pas trop ce qui ne va pas dedans.
Pouvez-vous m'aider ?








Répondre avec citation
Partager