[SGBD] PHP et mysqli - MySQL 4.1
Bonjour tout le monde,
J'ai une petite erreur avec mon code php et mysql.
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10
|
//connexion.inc.php
<?php
$dbname='medasite';
$hostname='localhost';
$username='root';
$password='meda';
$id_link=mysql_connect($hostname,$username,$password);
$db_selected=mysql_select_db($dbname,$id_link);
?> |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
//inscription.php
<?php
include "commun/connexion.inc.php";
$pseudo=$_GET['pseudo'];
$mdp=$_GET['mdp'];
$email=$_GET['email'];
$sql="insert into utilisateur(nom,mdp,mail) values('$pseudo','$mdp','$email')";
$result=mysql_query($sql);
echo $pseudo;
echo $mdp;
echo $email;
?> |
Voici l'erreur :
Code:
1 2 3 4 5 6
|
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Documents and Settings\Meda.FAMILLE\Bureau\Site\Site_admin\test\commun\connexion.inc.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Documents and Settings\Meda.FAMILLE\Bureau\Site\Site_admin\test\commun\connexion.inc.php on line 7
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Documents and Settings\Meda.FAMILLE\Bureau\Site\Site_admin\test\inscription.php on line 7 |
Donc en fait je ne comprends pas trop le problème.
mysql 4.1
php 5.0.2
apache 2.0.52