$sqlProRec1 = "SELECT * FROM tkw_tblproducts WHERE POnlineStatus='Y' AND LangRefer = 1 AND DataSubCategory = $GroupRefer ORDER BY PLocationShow ASC";
if ($queProRec1 = mysql_query($sqlProRec1)){
$numProRec1 = mysql_num_rows($queProRec1);
}
if($numProRec1 > 0){
?>
$iProRec1=1;
while ($rwProRec1 = mysql_fetch_array($queProRec1)){
$DataProductID = convertToText(stripStr($rwProRec1["GroupRefer"]));
$DataTitle = convertToText(stripStr($rwProRec1["PName"]));
$DataShortDetail = convertToText(stripStr($rwProRec1["PShortDescription"]));
$DataImagesName = convertToText(stripStr($rwProRec1["PThumbnail2"]));
if (is_file($ListPathImgProduct.$DataImagesName)) {
$ProRec_PThumbnailShow = "
";
}else {
$ProRec_PThumbnailShow = "
";
}
?>
$iProRec1++;}@mysql_free_result($queProRec1);?>