connect(); $objDB = new clsMysql; $objDB->connect(); $product_id = $_GET["id"]; $dtype = $_GET["dtype"]; if ($dtype == "") { $dtype = "0"; $goTag = 0; } else { $goTag = 1; } if ($product_id == "") { echo "PID?"; exit; } $strSQL = "select b.name as `brand_name`, a.* from product as `a` left join brand as `b` on a.brand_id = b.id "; $strSQL .= " where a.id = $product_id order by a.sort asc, a.sn asc"; //echo $strSQL; $objDB->query($strSQL); $total_record = $objDB->num_rows($objDB->result); //echo "total_record = $total_record"; if ($total_record <= 0) { echo "PRODUCT NOT FOUND !"; exit; } $DATA_ID = ""; $DATA_SN = ""; $DATA_TITLE = ""; $DATA_IMAGE = ""; $DATA_IMAGE_NAME = ""; $DATA_CONTENT_A = ""; $DATA_CONTENT_B = ""; $DATA_CONTENT_1 = ""; $DATA_CONTENT_2 = ""; $DATA_CONTENT_3 = ""; $DATA_CONTENT_4 = ""; $objDB->fetch_array($objDB->result); $DATA_ID = $objDB->record['id']; $DATA_SN = $objDB->record['sn']; $DATA_TITLE = $objDB->record['title']; $DATA_CONTENT_A = $objDB->record['content_a']; $DATA_CONTENT_B = $objDB->record['content_b']; $DATA_CONTENT_1 = $objDB->record['content']; $DATA_CONTENT_2 = $objDB->record['content2']; $DATA_CONTENT_3 = $objDB->record['content3']; $DATA_CONTENT_4 = $objDB->record['content4']; $c1 = $objDB->record['catalog_id']; $c2 = $objDB->record['catalog2_id']; $strSQL = "SELECT * FROM `describe` where product_id = $product_id order by sort asc "; $objDB->query($strSQL); $total_image = $objDB->num_rows($objDB->result); for ($i=0; $i < $total_image;$i++) { $objDB->fetch_array($objDB->result); $DATA_IMAGE[] = $objDB->record["image"]; $DATA_IMAGE_NAME[] = $objDB->record["name"]; } ?> Travla-product
 
     
   
query($strSQL); $objDB->fetch_array($objDB->result); $tagName = $objDB->record["name"]; ?>
Home > Products >
0) { if ($DATA_IMAGE[0] == "") { ?>    
     
<? echo $DATA_IMAGE_NAME[$i]; ?>
   
  query($strSQL); $total_image = $objDB->num_rows($objDB->result); ?> fetch_array($objDB->result); // $DATA_IMAGE[] = $objDB->record["image"]; // $DATA_IMAGE_NAME[] = $objDB->record["name"]; ?> record["image"], ".")); if ( $extname == ".pdf" ) { $image_file = "dl_32.gif"; } else { if ( $extname == ".doc" ) { $image_file = "dl_28.gif"; } else { if ( $extname == ".xls" ) { $image_file = "dl_32-34.gif"; } else { if ( $extname == ".ppt" ) { $image_file = "dl_32-36.gif"; } else { if ( $extname == ".rar" ) { $image_file = "rar.jpg"; } else { $image_file = "dl_32-38.gif"; } } } } } ?>
  record["image"] != "" ) { ?> ">record["name"]; ?> record["name"]; ?> record["datetime"], 0, 10 ) ; ?> record["size"] == "" ) { echo ""; } elseif ( round( ($objDB->record["size"]/1024), 2 ) < 1 ) echo "1"; else echo round( ($objDB->record["size"]/1024), 2 ); ?>KB
 
       
 
       
 
WARRANTY ABOUT US CHRONICLE CONTACT US WHERE TO BUY