Here is my query:
if($GetSize != ""){
$r = mysql_query("select * from `ProductSizes` ps, `products` p WHERE `ps.Size`='$GetSize' and `p.id`=`ps.Product`");
} else {
$r = mysql_query("SELECT * FROM `products` WHERE `Category`='$Cat' $FilterSQL $FilterSQLS $BrandSearch ORDER $OrderBy LIMIT $first_product_shown1, $products_per_page");
}
while($rowi = mysql_fetch_array($r))
{
$id = $rowi['id'];
$Title = $rowi['Title'];
$Image = $rowi['Image'];
$Price = $rowi['Price'];
$PriceOld = $rowi['PriceOld'];
$Rating = $rowi['Rating'];
$SDProductCode = $rowi['ProductCode'];
$Lev = $Price * GetSetting('PoundRate');
$LevOld = $PriceOld * GetSetting('PoundRate');
$Lev = number_format($Lev, 2, '.', '');
$LevOld = number_format($LevOld, 2, '.', '');
}
I think i have some mistake in it because i get no results.
Do you find any mistake and how the fixed variant must look like ?
Thanks in advance!