MySQL: CRITICAL problem

From: Date: Thu, 10 May 2001 14:33:36 +0000
Subject: MySQL: CRITICAL problem
Groups: php.db 
Request: Send a blank email to php-db+get-9218@lists.php.net to get a copy of this message
Error message is: ----- Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in kd_admin.php on line 12 Warning: MySQL: A link to the server could not be established in kd_admin.php on line 12 MySQL Error: ----- I got upper error trying to execute following code: <?php function prikazi_listu($tablica) { $data = mysql_query("SELECT * FROM $tablica"); if(!$data) { echo("MySQL Error: " . mysql_error() . "<br>"); return 0; }; if(mysql_affected_rows()==0) { echo('Nema podataka.<br>'); return 0; }; while ($data_row = mysql_fetch_array($data)) { for($i=1; $i<count($data_row); $i++) { echo($data_row[$i] . " "); }; echo("<br>"); }; return 1; }; ?> The connection has already been established, and some data read from database without problem. The connection was not closed, rather left alive. Now... Why this happens when I try to execute additional query? Help, anyone! TIA.

« previous php.db (#9218) next »