I am trying to embed a graph into my portal. According to the pChart documentation, I should be able to use the stroke() function to render to browser.
Then I am supposed to be able to invoke the script within an <img> tag.
Code:
<img src='mypic.php' />
Currently, the graph is working, but it is the only thing being displayed in the browser window. Could somebody please tell me what I am doing incorrectly. Help would be greatly appreciated. Here is summarized view of my code.
----------------------------------------------------------------------------------------------------------------------
netsales.php
Code:
<?php
include("../class/pData.class.php");
include("../class/pDraw.class.php");
include("../class/pImage.class.php");
/* query sales, create pData, create new pImage */
$myPicture->stroke();
?>
----------------------------------------------------------------------------------------------------------------------
index.php
Code:
<?php include ('netsales.php'); ?>
<html>
<body>
<div id="wrapper">
<div id="content"><img src="netsales.php" /></div>
</div>
</body>
</html>