TGWSE_GY Posted August 17, 2009 Share Posted August 17, 2009 Okay, everything is duplicating multiple times when this script runs, I have checked and checked and trippled checked. It should not be happening, there are two files here maineditor.php <?php //Get database connectiong config include('config.php'); $tbl = "jamsmag_reviews"; //Get title from db $query = "SELECT * FROM $tbl ORDER BY id DESC LIMIT 1"; $result = mysql_query($query) or die(mysql_error()); $resultarray = mysql_fetch_assoc($result) or die(mysql_error()); $title = $resultarray['title']; $article = $resultarray['article']; $summary = $resultarray['summary']; $search = "src=\"images"; $replace = "src=\"http://hmtotc.com/dev/projects/VRassoc/soundsurfer.biz/images"; $article_edited = str_replace($search, $replace, $article); $article = $article_edited; //Title $oFCKeditor = new FCKeditor('title') ; $oFCKeditor->ToolbarSet = 'title'; $oFCKeditor->Width = '75%' ; $oFCKeditor->Height = '20' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $title ; $oFCKeditor->Create() ; //Article $oFCKeditor = new FCKeditor('article') ; $oFCKeditor->ToolbarSet = 'article'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '512' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $article ; $oFCKeditor->Create() ; //Summary $oFCKeditor = new FCKeditor('summary') ; $oFCKeditor->ToolbarSet = 'summary'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '100' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $summary ; $oFCKeditor->Create() ;U ?> and news.php <?php //Get database connectiong config include('config.php'); $tbl = "jamsmag_news"; //Get title from db $query = "SELECT * FROM $tbl ORDER BY id DESC LIMIT 1"; $result = mysql_query($query) or (mysql_error()); $resultarray = mysql_fetch_assoc($result) or (mysql_error()); $title = $resultarray['title']; $article = $resultarray['article']; $summary = $resultarray['summary']; $search = "src=\"images"; $replace = "src=\"http://hmtotc.com/dev/projects/VRassoc/soundsurfer.biz/images"; $article_edited = str_replace($search, $replace, $article); $article = $article_edited; //Title echo "<center><h2>TITLE</h2></center>"; $oFCKeditor = new FCKeditor('title') ; $oFCKeditor->ToolbarSet = 'title'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '20%' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $title ; $oFCKeditor->Create() ; //Article echo "<center><h2>ARTICLE</h2></center>"; $oFCKeditor = new FCKeditor('article') ; $oFCKeditor->ToolbarSet = 'article'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '512' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $article ; $oFCKeditor->Create() ; //Summary echo "<center><h2>SUMMARY</h2></center>"; $oFCKeditor = new FCKeditor('summary') ; $oFCKeditor->ToolbarSet = 'summary'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '50%' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $summary ; $oFCKeditor->Create() ; ?> Also here is a link so you can see what is going on http://www.hmtotc.com/dev/projects/VRassoc/jamsmagazine.com/admin/classes/forms/maineditor.php?section=edit_news For the world of me I cannot seem to see where the problem is. As this works on another domain with no issues whatsoever. Thanks Guys! :facewall: :facewall: Quote Link to comment Share on other sites More sharing options...
p2grace Posted August 17, 2009 Share Posted August 17, 2009 Nothing is duplicating when I look at the page. Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted August 17, 2009 Share Posted August 17, 2009 Yup, looks good for me too. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 17, 2009 Share Posted August 17, 2009 Nothing is duplicating when I look at the page. Me neither. Also, please do not post your title in capital letters. It's very annoying. Quote Link to comment Share on other sites More sharing options...
infiniteacuity Posted August 17, 2009 Share Posted August 17, 2009 I do not see any issues. Also, you should probably post the code that is actually generating the content for the link you sent. Quote Link to comment Share on other sites More sharing options...
AviNahum Posted August 17, 2009 Share Posted August 17, 2009 i can't see any problems Quote Link to comment Share on other sites More sharing options...
TGWSE_GY Posted August 17, 2009 Author Share Posted August 17, 2009 Sorry for the caps, figured it out it was my browser cache sorry for the confusion guys. Thanks 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.