graph is not updating information?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mike08
Forum Commoner
Posts: 57
Joined: Mon Apr 19, 2004 3:18 am

graph is not updating information?

Post 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(); 
?>
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

My first guess would be caching.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
mike08
Forum Commoner
Posts: 57
Joined: Mon Apr 19, 2004 3:18 am

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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]
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
mike08
Forum Commoner
Posts: 57
Joined: Mon Apr 19, 2004 3:18 am

Post by mike08 »

Thanks i gave it a go but still no joy, still doesn't want to update?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply