[PHP] Internal Server Error?

2002-01-06 Thread GoodFella
Hello, Does anybody have any ideas why the code below is giving me internal server errors? if (!isset($PHP_AUTH_USER)) { header('WWW-Authenticate: Basic realm=XYZ Company Admin Area'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } else if

Re: [PHP] MySQL problem

2001-12-30 Thread GoodFella
Hiya, Thanks for the quick reply. I used the PHP manual example and it connects to the database successfully but cannot select the database. I'm not sure why this is? I've looked hard at it and I cannot see where I have gone wrong. Thanks. GF. - Original Message - From: David

Re: [PHP] MySQL problem

2001-12-30 Thread GoodFella
Thanks so much guys, It was my user permissions all along. Funnily enough the book gives you guidelines on how to set them up, and sets up a fair few... but for some reason they selected the wrong user to use. Thanks very much for your help David and Brian- much appreciated. Yours, GF