| View previous topic :: View next topic |
| Author |
Message |
Mike
Joined: 20 Feb 2010 Posts: 23
|
Posted: Sat Feb 20, 2010 12:36 pm Post subject: content type=text/html and and image/jpeg in same php file? |
|
|
Hi
my question is how to organize more content type in the same php file?
i have a php file which displays some inventory values from mysql. i need to display the barchart for that values after that in the same file.
here i set the content type=image/jpeg for display the barchart.but its not working.when i put ob_start() no use.when i used ob_flush means only the barchart is display other templates and designs are gone.
Regards
Mike |
|
| Back to top |
|
 |
AnilKumar

Joined: 09 May 2008 Posts: 197
|
Posted: Mon Feb 22, 2010 5:10 am Post subject: |
|
|
Hello Mike,
Once you try with in php file write your own code and when want to display the barchart then include that file there. it will be displayed. here we do like that. in this site we implemented captcha code image,
Once try with that, hope that we will find the solution for it.
Thank you,
Anil Kumar  |
|
| Back to top |
|
 |
Mike
Joined: 20 Feb 2010 Posts: 23
|
Posted: Mon Feb 22, 2010 5:56 am Post subject: thanks |
|
|
Hi,
Thanks a lot Anil. when i call the dispaly.php page means it will display all the content in table. after that i want to display a barchart in another table for that values.both are display at the same time.
Regards
Mike |
|
| Back to top |
|
 |
AnilKumar

Joined: 09 May 2008 Posts: 197
|
Posted: Fri Mar 05, 2010 5:16 am Post subject: |
|
|
Hi Mike,
There may one solution is that the data from one file and that bar chart from another table., or else once call that display.php with some modified url like
display.php?type=data for retrieving data and display.php?type=image for barcharts.
Hope it will be useful.
Thank you,
Anil Kumar  |
|
| Back to top |
|
 |
|