View unanswered posts | View active topics It is currently Fri Mar 29, 2024 12:10 pm



Reply to topic  [ 3 posts ] 
$myPicture->stroke() 
Author Message
New pChart user
New pChart user

Joined: Fri Feb 25, 2011 4:04 pm
Posts: 3
Post $myPicture->stroke()
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.
Code:
$myPicture->stroke;

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>


Fri Feb 25, 2011 6:48 pm
Profile
New pChart user
New pChart user

Joined: Fri Feb 25, 2011 4:04 pm
Posts: 3
Post Re: $myPicture->stroke()
I figured it out. Thanks for nothing Forum


Fri Feb 25, 2011 8:18 pm
Profile
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: $myPicture->stroke()
> I figured it out. Thanks for nothing Forum
You said nothing. We just were not able help you! Here. In another topic you posted code. And problem was found in index.php: Just remove this: <?php include ('netsales.php'); ?>.

_________________
Image


Fri Feb 25, 2011 9:05 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron