'; while($row = mysqli_fetch_array($result)) { if ($panelID != $row['Panel']) { if ($panelID != -1) { echo ""; echo "
"; } $panelID = $row['Panel']; //create new div for display if ($buttonPanel == $panelID) { echo ""; } echo "
"; echo "
"; echo ""; $rowCount = 0; } //check for things being to big and going down a row in th etable $rowCount++; if (($buttonWidth * $rowCount) > $panelWidth) { echo ""; $rowCount = 1; } echo ""; /* echo "";*/ } echo "
"; $price = (double)$row['Price']; if ($row['Taxable'] != 0) { $tax = (int)15 / 100; } else { $tax = 0; } $taxTotal = $price * $tax; $total = $price + $taxTotal; $total = number_format((float)$total, 2, '.', ''); echo '
'; echo '
'; echo '
'; echo '

' . $row["Text"] . '

'; //echo '

' . $row["Details"] . '

'; //echo '
'; echo '
'; //echo '$' . $total . ''; echo ''; echo ''; echo ''; //grab the category name for the tab system $sql2 = "SELECT * FROM category WHERE ID = " . $row['Category'] . ";"; $result2 = mysqli_query($link, $sql2); while($row2 = mysqli_fetch_array($result2)) { echo ''; } echo ''; //echo ''; echo ""; echo '
'; echo '
'; echo '
'; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo ''; mysqli_close($link); ?>