Jump to content

[SOLVED] insert flash thought had working but still problems


sandbudd

Recommended Posts

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();
?>

 

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......
   }

   ?>

<?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......
   }

   ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.