sandbudd Posted October 13, 2008 Share Posted October 13, 2008 Hey guys thanks for the help getting this to insert but it displays in the correct place on the page but also displays again on the top of the page? <?php require_once('includes/init.php'); $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>".file_get_contents("flashtest.php")."</h2>"; echo $page['content']; if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "<li><a href=\"product.php?id=$id\"><img src=\"Images/Product Images/" . $info['pic'] . "\" alt=\"" . $info['name'] . "\" /></a></li>\n"; $page['content'] .= "</ul>"; } $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; print_page(); ?> Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/ Share on other sites More sharing options...
sandbudd Posted October 13, 2008 Author Share Posted October 13, 2008 guess I should put the part that was inserted .file_get_contents("flashtest.php") Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/#findComment-664283 Share on other sites More sharing options...
redarrow Posted October 13, 2008 Share Posted October 13, 2008 try this mate.......... <?php require_once('includes/init.php'); echo"<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>".file_get_contents("flashtest.php")."</h2>"; echo"</div></div></div></div></div></div></div></div>\n</div>"; //moved ths here//////// $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "<li><a href=\"product.php?id=$id\"><img src=\"Images/Product Images/" . $info['pic'] . "\" alt=\"" . $info['name'] . "\" /></a></li>\n"; $page['content'] .= "</ul>"; $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; //moved ths here//////// print_page(); // moved aswell exit; // exit added...... } ?> Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/#findComment-664285 Share on other sites More sharing options...
sandbudd Posted October 13, 2008 Author Share Posted October 13, 2008 with that all I get is the flash and nothing else? Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/#findComment-664286 Share on other sites More sharing options...
redarrow Posted October 13, 2008 Share Posted October 13, 2008 <?php require_once('includes/init.php'); echo"<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>".file_get_contents("flashtest.php")."</h2>"; echo"</div></div></div></div></div></div></div></div>\n</div>"; //moved ths here//////// $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "<li><a href=\"product.php?id=$id\"><img src=\"Images/Product Images/" . $info['pic'] . "\" alt=\"" . $info['name'] . "\" /></a></li>\n"; $page['content'] .= "</ul>"; $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; //moved ths here//////// print_page(); // moved aswell exit; // exit added...... } ?> Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/#findComment-664290 Share on other sites More sharing options...
sandbudd Posted October 13, 2008 Author Share Posted October 13, 2008 now its at the top of the page instead of the box. Here is a link of what it looks like. http://d882518.u36.rickettsweb.com/index5.php Link to comment https://forums.phpfreaks.com/topic/128258-solved-insert-flash-thought-had-working-but-still-problems/#findComment-664293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.