fekaduw Posted June 25, 2007 Share Posted June 25, 2007 i have an iframe that will allow users to type and edit texts like a text editor. When i try to add some data, it works fine. but the iframe does not update itself when i try to view the data inserted. it displays an old data that has been there before the update. Here is the code for the iframe: <script language="javascript"> //Create an iframe and turn on the design mode for it document.write ('<iframe src="message2.php?id=<?php echo($vid); ?>" id="message" width="440" height="220" name="mess1"></iframe>') frames.message.document.designMode = "On"; </script> the content of message2.php is: <?php require("../includes/dbconn.php"); if(isset($_GET["id"])) { $vid=$_GET["id"]; } else { $vid=NULL; } if(($vid!="")&&($vid!=0)) { $SQL="select * from tblhome where topicid=".$vid; $result=mysql_query($SQL); $row=mysql_fetch_array($result); $vdesc=$row["Description"]; } else $vdesc=""; echo $vdesc; ?> What could be the problem? any help is highly appreciated. thanks Link to comment https://forums.phpfreaks.com/topic/57079-the-iframe-does-not-display-the-updated-data/ Share on other sites More sharing options...
trq Posted June 25, 2007 Share Posted June 25, 2007 You need to refresh it. Link to comment https://forums.phpfreaks.com/topic/57079-the-iframe-does-not-display-the-updated-data/#findComment-282032 Share on other sites More sharing options...
fekaduw Posted June 25, 2007 Author Share Posted June 25, 2007 i did that. i even re-opened the page. but it still displays the old one! Link to comment https://forums.phpfreaks.com/topic/57079-the-iframe-does-not-display-the-updated-data/#findComment-282034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.