Windows XP
| From: | Gerard Samuel | Date: | Sun, 18 Aug 2002 20:18:08 +0000 |
| Subject: | Windows XP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21218@lists.php.net to get a copy of this message | ||
Im trying to solve a problem with windows xp.
I have 2 identical scripts with the same db schema. One on FreeBSD running php 4.2.2/mysql 3.23.49 & the other
on windows xp php 4.2.2/mysql 3.23.52.
The section of the script is supposed to update a table.
------
$sql = "UPDATE users SET email='$email' WHERE uid='$uid'";
$result = mysql_query($sql);
var_dump($result);
if (!$result)
{
die(mysql_error());
}
------
On the FreeBSD box, $result returns true, but returns false on the windows box.
The error reported when it was false was "Access denied for user: 'crash@localhost' to database 'crash'"
But according to that error, the connection parameters are correct.
I echoed $sql and ran the output of that in the mysql client, and it executed successfully on the windows box.
So Im stuck as to what could be causing the error with the windows box.
Anyone experienced this behaviour before???
Thx.
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/