Page 1 of 1

graph is not updating information?

Posted: Tue Apr 20, 2004 2:27 pm
by mike08
With help from you guys ive managed to view my online poll image in a different html page with this code, unfortunately it doesn't seem to update, but just shows the same graph each time as it was before. its not updating once a person clicks on the vote button.

it updates without the inclusion of my headers and footers, that's why i had to embed it using the <img statement but it doesn't update?

hope someone can help?


PHP:
--------------------------------------------------------------------------------

Code: Select all

<?php  
session_start(); 
ob_start(); 
// image.php is holding the header() and other info of the above picture 
include ('../includes/header.html');  
?>  
<img src="show_poll.php"> 
<?php  
include ('../includes/footer.html');  
ob_end_flush(); 
?>

Posted: Tue Apr 20, 2004 3:33 pm
by pickle
My first guess would be caching.

Posted: Tue Apr 20, 2004 4:15 pm
by mike08
thanks could you point me in how to set up these arguments.

as im new to this and managed to get the graph from a book, just amended it as would like to use it on my web site im building.

cheers.

Posted: Tue Apr 20, 2004 5:21 pm
by pickle
well, you could send a few headers such as Pragma and Cache-control, which would stop the page from being cached.
[php_man]
header()
[/php_man]

Posted: Wed Apr 21, 2004 6:16 pm
by mike08
Thanks i gave it a go but still no joy, still doesn't want to update?

Posted: Wed Apr 21, 2004 7:04 pm
by pickle
Any chance you could give us a link to go to? Granted, you'd have to make a new page, but by doing that we can a) experience exactly what the problem is and b) maybe you'll notice something you haven't before.