WorldBuilder
February 6th, 2004, 08:03 PM
Hi guys,
I downloaded a "calendarix" script from HotScripts. It's pretty involved (at least, a php n00b like me thinks it is), but the setup of it is pretty easy. I attached the zip file I downloaded to this post so you can take a look.
I created the MySQL database with the included sql file. No problem. I created a user, a password for that user, etc, etc...
The script works. You can see it in action here (http://www.bartlett-family.net/calendar). However, when I click "administration" on the bottom left, and then input the username and password I created, it rejects me.
In the "cal_db.inc.php" file, I changed the following to reflect the MySQL user and password I made.
# database connection
$db = 'calendar';
$dbuser = 'cal';
$dbpass = 'xxxxxx';
$dbhost = 'localhost';
mysql_connect($dbhost,$dbuser,$dbpass) or die("could not connect");
mysql_select_db("$db") or die("could not open database");
Still, it rejects me so I can't perform any admin functions. Anyone know what's wrong? Sorry if I'm being vague. I don't know how else to describe it. Can you guys take a look and help me out, please? I'm using phpmyadmin.
Thanks!
Chris
I downloaded a "calendarix" script from HotScripts. It's pretty involved (at least, a php n00b like me thinks it is), but the setup of it is pretty easy. I attached the zip file I downloaded to this post so you can take a look.
I created the MySQL database with the included sql file. No problem. I created a user, a password for that user, etc, etc...
The script works. You can see it in action here (http://www.bartlett-family.net/calendar). However, when I click "administration" on the bottom left, and then input the username and password I created, it rejects me.
In the "cal_db.inc.php" file, I changed the following to reflect the MySQL user and password I made.
# database connection
$db = 'calendar';
$dbuser = 'cal';
$dbpass = 'xxxxxx';
$dbhost = 'localhost';
mysql_connect($dbhost,$dbuser,$dbpass) or die("could not connect");
mysql_select_db("$db") or die("could not open database");
Still, it rejects me so I can't perform any admin functions. Anyone know what's wrong? Sorry if I'm being vague. I don't know how else to describe it. Can you guys take a look and help me out, please? I'm using phpmyadmin.
Thanks!
Chris