Current location: Hot Scripts Forums » Programming Languages » PHP » gantt-chart


gantt-chart

Reply
  #1 (permalink)  
Old 07-15-04, 07:53 AM
sharad sharad is offline
Newbie Coder
 
Join Date: Jun 2004
Location: noida
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy gantt-chart

Hi,
i have written the followin lines of code to generate a gannt chart.

<?
/* include the JpGraph supporting files. */
include("../jpgraph/jpgraph.php");
include("../jpgraph/jpgraph_gantt.php");

/* Creating a graph with automatic size*/
$test_graph = new GanttGraph(0,0,"auto");

/* Adding a new activity on row '0' */
$test_activity = new GanttBar(0,"Project", "2004-05-05", "2004-08-03");
$test_graph -> Add($test_activity);

/* Display the Gantt Chart */
$test_graph -> Stroke();

?>

The above code generates a gantt chart.
But when I am trying to echo any thing like

echo "myname";
Then it does not work.
I have included this line before the rnd PHP tag.
The files used in include() are the predefined files. As these file contains the calss definitions like GanttGraph.

This time I dont know the object oriented phase of PHP.
What should I do?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 05:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.