Salve a tutti.
sono newbie in php ed ho qualche difficoltà a connettermi a mysql.
Questo è il messaggio di errore che ricevo:
Warning: MySQL Connection Failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client in d:\windows\apache\apache\root\sandro
mentre il codice che scrivo è:
Codice PHP:
$conn = mysql_connect('localhost','root','*****');
mysql_select_db('sandrov4_news',$conn);
$query = mysql_query('SELECT * FROM news',$conn);
echo "<table>";
while($row = mysql_fetch_array($query)) {
$date = $row[date];
Qualcuno ha idea di cosa stia sbagliando?
PHP 4.2.3 installed on Apache 1.3.27 and mysql 4.1
Grazie