Re: [PHP-WIN] Another Newbie Question

2002-04-11 Thread Nik Alleyne
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 '

RE: [PHP-WIN] Another Newbie Question

2002-04-10 Thread Robin Bolton
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

RE: [PHP-WIN] Another Newbie Question

2002-04-10 Thread Shrock, Court
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

Re: [PHP-WIN] Another Newbie Question

2002-04-10 Thread Mike Flynn
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