I'm testing out wdcalendar, a jquery based calendar for a wesbite. Some info on it:
http://www.webappers.com/2010/06/08/wdcalendar-jquery-based-google-calendar-clone/

The installation instructions are simple, but not detailed so maybe im screwing up somewhere. They go as follows:


Copy the unzipped directory into the apache www directory/sub-directory.
For a database:
Create a database, execute setup.sql
Change php/dbconfig.php to fit yours
rename edit.db.php to edit.php and php/datafeed.db.php to php/datafeed/php

And thats it for the instructions. My experience with mysql is nil so i followed a debian guide.

sudo apt-get install mysql-server amarok

$ mysql -u root -p
Enter password:

mysql> create database amarokdb;
mysql> grant usage on *.* to amarokuser@localhost identified by 'amarokpasswd';
mysql> grant all privileges on amarokdb.* to amarokuser@localhost ;
# running the setup.sql as specified
mysql> \. setup.sql

#and check i can connect with:

mysql -u amarokuser -p'amarokpasswd' amarokdb

The dbconfig.php looks like this:

<?php
class DBConnection{
     function getConnection(){
     //localhost/amarokuser/amarokpasswd
         mysql_connect("localhost","root","") or
     die("Could not connect: " . mysql_error());
   //amarokdb
         mysql_select_db("jqcalendar") or
             die("Could not select database: " . mysql_error());
      }
}
?>

What i changed here were the "//" lines which just said, localhost/user/pass and //databasename.


So after all this i goto the sample.php page. This generates random events on the page, untill the database is specified (i believe). When i browse to the page, the UI is there, but the rest is blank. At the top it says sorry, could not load your data, please try again later.

So any help here would be great, google doesnt have much

I hadnt realized the // started comments. My bro told me that and had me change the config to below, which worked.

<?php
class DBConnection{
     function getConnection(){
     
         mysql_connect("localhost","amarokuser","amarokpasswd") or
     die("Could not connect: " . mysql_error());
 
         mysql_select_db("amarokdb") or
             die("Could not select database: " . mysql_error());
      }
}
?>

after upgrade PHP to PHP Version 5.3.3 it RUNS in localhost and in my server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.