Re: 'ODBC'@'localhost' instead of 'root'@'invalid_hostname.com' ?!??

2005-08-23 Thread Nuno Pereira
Sorry for replying to my own post, but here is the manual page of PHP about mysql functions: http://www.php.net/mysql and specificly to mysql_connect: http://www.php.net/manual/en/function.mysql-connect.php Nuno Pereira wrote: Martin Olsson wrote: Hi, I'm using PHP/MySQL to development a we

Re: 'ODBC'@'localhost' instead of 'root'@'invalid_hostname.com' ?!??

2005-08-23 Thread Nuno Pereira
Martin Olsson wrote: Hi, I'm using PHP/MySQL to development a web-based application. I just upgraded both PHP and MySQL and I noticed that some of my MySQL calls are now broken and I don't see any easy way to fix them. My script calls mysql_connect() and does very careful error checking. It

RE: 'ODBC'@'localhost' instead of 'root'@'invalid_hostname.com' ?!??

2005-08-22 Thread Arjan Hulshoff
Martin, Have you defined a user? Because Windows automatically uses 'ODBC'@'localhost' as a standard account, when there is no username submitted. According to http://www.php.net/manual/en/function.mysql-errno.php the mysql-errno function should still work. But it might be interesting to know whic