$page_title = 'OFERTA PRETURI';
include ("../includes/top.php");
// connect(); // connect to database
?>
Oferta magazin Omnia Pro Lizeanu
$db = new queryFactory();
$db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE);
$sql = "SELECT * FROM op_products ORDER BY denumire";
$brands = $db->Execute($sql);
$sql = "SELECT COUNT(*) AS total FROM op_brands";
$brands_total = $db->Execute($sql);
$brands_total = $brands_total->fields['total'];
//$number_items_per_row = 3;
echo '
Denumire produs: | Preturi incepand de la: |
'; echo $brands->fields['denumire']; echo ' | '; echo number_format($brands->fields['pret'], 2, ',', '.'); echo ' RON ('; echo number_format(($brands->fields['pret'])*10000, 0, ',', '.'); echo ' ROL) |