Click any of our recommendations, or recommend a product.
//AMAZON CODES HERE
$test = split(",",$Atype);
$viewcount = 1;
foreach($test as $itemdata){
$queryX = "SELECT pasin,productid,ppimage,pname,pprice,pdiscounted,psearch FROM pickyproduct WHERE articleid='$articleid' AND
atype='".trim($itemdata)."' AND pquantity > 0 AND pstatus = 1 ";
$resultX = mysql_query($queryX);
$num_resultsX = mysql_num_rows($resultX);
$strRow = 0;
if($num_resultsX > 0){
echo "".ucwords(trim(stripslashes($itemdata)))." ".trim(stripslashes($Aname))."";
?>
for($x = 0; $x < $num_resultsX; $x++ ){
$rowX = mysql_fetch_array($resultX);
$strRow ++;
$viewcount ++;
if($strRow == 1){echo "";}
?>
.html"> " align="center" border="0"> |
$pricetemp = $rowX["pprice"];
$discounttemp = $rowX["pdiscounted"];
$asin = $rowX["pasin"];
pricex($pricetemp,$discounttemp,"priceprev",$viewcount,$asin); ?>
|
if($strRow == 3)
{echo " ";
$strRow = 0;}}
if($strRow < 3){
$strLeft = 3 - $strRow;
for($z=0; $strLeft > $z;$z++)
{echo " | ";}
echo "";}
?>
}else{}}?>
//others
$queryX = "SELECT pasin,productid,ppimage,pname,pprice,pdiscounted,psearch FROM pickyproduct WHERE articleid='$articleid' AND
atype='others' AND pquantity > 0 AND pstatus = 1 ";
$resultX = mysql_query($queryX);
$num_resultsX = mysql_num_rows($resultX);
$strRow = 0;
if($num_resultsX > 0){
echo "Other ".trim(stripslashes($Aname))."The following products have not been reviewed by our editors, but are also available from our trusted merchants. ";
?>
for($x = 0; $x < $num_resultsX; $x++ ){
$rowX = mysql_fetch_array($resultX);
$strRow ++;
$viewcount ++;
if($strRow == 1){echo "";}
?>
.html"> " align="center" border="0"> |
$pricetemp = $rowX["pprice"];
$discounttemp = $rowX["pdiscounted"];
$asin = $rowX["pasin"];
pricex($pricetemp,$discounttemp,"priceprev",$viewcount,$asin); ?>
|
if($strRow == 3)
{echo " ";
$strRow = 0;}}
if($strRow < 3){
$strLeft = 3 - $strRow;
for($z=0; $strLeft > $z;$z++)
{echo " | ";}
echo "";}
?>
}else{}?>
|