include('public_inc.php');?> include ('include_less.php') ?> connectdb(); charSetThai(); loadControl(); /*loadControlAddr(1);*/ ?> $hidProductID = $requ["hidProductID"]; $sqlDetail = "SELECT * FROM tkw_tblproducts WHERE GroupRefer = $hidProductID AND POnlineStatus='Y' AND LangRefer = 2"; if ($queDetail = mysql_query($sqlDetail)){ $rwDetail = mysql_fetch_array($queDetail); $DataID = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["ProductID"]))); $DataTitle = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PName"]))); $DataShortDetail = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PShortDescription"]))); $DataDetail = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PDescriptionMore"]))); $DataPOverveiw = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["POverveiw"]))); $DataPSpecification = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PSpecification"]))); $DataDataCategory = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["DataCategory"]))); $DataDataSubCategory = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["DataSubCategory"]))); $DataImagesName = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PThumbnail2"]))); if (is_file($ListPathImgProduct.$DataImagesName)) { $ProRec_PThumbnailShow = ""; }else { $ProRec_PThumbnailShow = ""; } }@mysql_free_result($queDetail); $sqlDetail = "SELECT * FROM tkw_tblproducts_type WHERE GroupRefer = $DataDataCategory AND PTypeOnlineStatus ='Y' AND LangRefer = 2"; if ($queDetail = mysql_query($sqlDetail)){ $rwDetail = mysql_fetch_array($queDetail); $DataTypeTitle = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PTypeTitle"]))); }@mysql_free_result($queDetail); $sqlDetail = "SELECT * FROM tkw_tblproducts_type_sub WHERE GroupRefer = $DataDataSubCategory AND PTypeOnlineStatus ='Y' AND LangRefer = 2"; if ($queDetail = mysql_query($sqlDetail)){ $rwDetail = mysql_fetch_array($queDetail); $DataSubTypeTitle = convertToHtmlFCKImage(convertToHtmlFCK(stripStr($rwDetail["PTypeTitle"]))); }@mysql_free_result($queDetail); ?>