include("include/mysqlDB.php"); include("include/CommonFunction.php"); include("include/DefineKeys.php"); include("product_function.php"); $ImagePath2 =_CLTTIMAGE; $ImagePath1 =_CLTLAIMAGE; $objDB = new DB; $product_id =$_REQUEST["PID"]; if($product_id=="") $product_id=9; $leftlist=PList($ImagePath2); $details= PDetails($product_id,$ImagePath1); $template = implode('',file('html/productviewtemplate.html')); $template = str_replace('[MIDDLE]',$details,$template); $template = str_replace('[LEFT]',$leftlist,$template); echo $template; ?>