Sindbad~EG File Manager
<?php
require_once('DB.php');
require_once('query.php');
?>
<p></p>
<h3>Quanto costa MathXpert?</h3>
<P></P>
<table border="1">
<tr> <td> <strong> Prodotto </strong></td><td><strong>Prezzo </strong></td> </tr>
<?php
$sql = "SELECT * FROM Products";
$q = query($sql);
$format = "%01.2f"; // good for American currency, dollars and cents
while($q->fetchInto($row))
{ $price = "$" . sprintf($format,$row[2]); // $row[2] is the price, but it needs to be formatted
echo "<tr> <td> $row[1] </td> <td align=right> $price </td> </tr>"; // short name, e.g. "calculus" or "algebra"
}
?>
</table>
<P></P>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists