'; if(substr($PageName,0,1)=="/") { $PageName=substr($PageName,1); } $Rubrics = mysqli_query($dbh,"SELECT * FROM `Price_Rubric` WHERE `HTTP`='".$PageName."'"); if($Rubric) { if(mysqli_num_rows($Rubrics)>0) { $Rubric = mysqli_fetch_assoc($Rubrics); $Res = mysqli_query($dbh,"SELECT * FROM `Price_List` WHERE `Visible`=1 AND `ID_Rubric`='".$Rubric['ID']."' AND `Price` > 0"); if($Res) { if(mysqli_num_rows($Res)>0) { while($Row=mysqli_fetch_assoc($Res)) { print ''; print ''; print ''; print ''; print ''; print ''; print ''; } }} }} ?>

You can order:

Product Name Manufacturer Volume Price Quantity / Order
'.$Row['Name'].''.$Row['Producer'].''.$Row['Volume'].' '.$Row['Ed'].'$'.$Row['Price'].''; print '
'; print ''; print ''; $orderButtonName='Add to cart'; $defaultQuantity=1; if(isset($basketChecked[$Row['ID']]) && isset($basketChecked[$Row['ID']]['Quantity'])) { $defaultQuantity = $basketChecked[$Row['ID']]['Quantity']; $orderButtonName = 'Change'; print ''; } print ''; print ' / '; print '