Thankx a million. It worked!
"Court Shrock" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are you sure that the database server is called 'nik'.if the same
system
> is both your web server and database server, I would recommend replacing
> 'nik' with '
Most likely the user that you're logging in as (ie no username or password
specified) doesn't have permission to open the database in question.
Best way to test it out is *temporarily* put your root username and password
into your mysql_connect function call. If you can access the database it's a
Are you sure that the database server is called 'nik'.if the same system
is both your web server and database server, I would recommend replacing
'nik' with 'localhost'. I am thinking that your mysql_connect() should be
as follows:
mysql_connect('localhost', 'nik', '');
//connect to localhos
I recommend using mysql_error() to see what the problem is. I/e:
mysql_connect('nik', '', '') or
die('Could not connect: '.mysql_error());
mysql_select_db_('guestbook') or
die('Could not select: '.mysql_error());
Something like that..
At 12:56 PM 4/10/02 -0300, Nik Alleyne wrote:
>Good e