Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Mon Aug 11, 2008 2:05 pm Reply with quote

I have been spinning my wheels all day on this.

The tutorial says the following:

1. Type the following text in a text document, name the document sample.php, and place it on your server:
Code:
<?php


//include charts.php to access the SendChartData function
include "charts.php";

SendChartData ();

?>


Mine is called discriminator.php

I am just testing trying to get it working before I query from my database.

Here it is:

Code:
<?php


include "charts.php";
 
//the chart's data
$chart [ 'chart_data' ] = array ( array ( "",         "2001", "2002", "2003", "2004" ),
                                  array ( "Region A",     5,     10,     30,     63  ),
                                  array ( "Region B",   100,     20,     65,     55  ),
                                  array ( "Region C",    56,     21,      5,     90  )
                                );
 
//send the new data to charts.swf
SendChartData ( $chart );
?>


charts.php is in the same directory as discriminator.php

How can I use InsertChart along with a javascript popup function like so?

Code:
<input type="button" value="&nbsp;Discriminator&nbsp;" onclick="popUp(\''.append_sid('charts.swf', 'charts_library', 'discriminator.php').'\', 500, 350)">&nbsp;&nbsp;


The tutorial has something like so:
Code:


<HTML>
<BODY bgcolor="#FFFFFF">

<?php

//include charts.php to access the InsertChart function
include "charts.php";

echo InsertChart ( "charts.swf", "charts_library", "sample.php", 400, 250 );

?>

</BODY>
</HTML>


I want to combine the two. Any help is appreciated.
 
View user's profile Send private message Visit poster's website ICQ Number
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Fri Sep 05, 2008 12:51 pm Reply with quote

<BUMP>
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©