php-db | 2001051
Date: 05/10/01
- Next message: Philippe Saladin: "Re: [PHP-DB] LDAP php_ldap.dll not loaded"
- Previous message: boclair: "Re: [PHP-DB] No MySQL-Link resource supplied"
- Next in thread: Simon R Jones: "[PHP-DB] RE: MySQL: CRITICAL problem"
- Reply: Simon R Jones: "[PHP-DB] RE: MySQL: CRITICAL problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Error message is:
-----
Warning: MySQL Connection Failed: Access denied for user: 'ODBC <email protected>'
(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.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Philippe Saladin: "Re: [PHP-DB] LDAP php_ldap.dll not loaded"
- Previous message: boclair: "Re: [PHP-DB] No MySQL-Link resource supplied"
- Next in thread: Simon R Jones: "[PHP-DB] RE: MySQL: CRITICAL problem"
- Reply: Simon R Jones: "[PHP-DB] RE: MySQL: CRITICAL problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

