haku87 Posted January 2, 2009 Share Posted January 2, 2009 I try to use Jquery to load a php page into a div. At first, i load the correct data but once i changed data in database and i click on the link to load the php again. It load back the old data. This is the page i try to load to the div. include "mysql.php"; $plt = array("1", "2", "3", "Support", "HQ"); for($x=0;$x<5;$x++){ $mysql = "SELECT * FROM information WHERE Platoon ='".$plt[$x]."'"; $info = mysql_query($mysql); $plttotal[$plt[$x]] = mysql_num_rows($info); } This is the function to load the page into the div. function status(){ $('#tcontent3').load('status.php'); } Link to comment https://forums.phpfreaks.com/topic/139216-read-old-data/ Share on other sites More sharing options...
rhodesa Posted January 2, 2009 Share Posted January 2, 2009 is it caching? try this javascript: $.ajax({ url: 'status.php', cache: false, success: function(html){ $('#tcontent3').html(html); } }); Link to comment https://forums.phpfreaks.com/topic/139216-read-old-data/#findComment-728178 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.