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'); } Quote Link to comment 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); } }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.