Soldato
How do I output the results into 3 container divs? with each of the divs assigned their own div so I can manipulate company, product and price later with css?
PHP:
$query = ("SELECT *
FROM company
JOIN products
ON company.idcompany = products.idcompany JOIN price
ON products.idProducts = price.idproduct
ORDER BY price DESC
LIMIT 3");
$result = mysql_query($query) or die(mysql_error());
// Print out the contents of each row into divs
while($row = mysql_fetch_array($result)){
echo $row['company]. " ". $row['product']. " ". $row['price'];
}