<?
include ("connexion.php" ) ;
mysql_connect($hostname,$mysqluser,$mysqlpswd);
mysql_selectdb($database) or die($diemessage);
echo "<html><head><link rel='stylesheet' type='text/css' href='style.css'></head><body>";
$req = mysql_query("SELECT quartier, prix12, prix34, prix5 FROM quartier" );
echo "<FORM name='monform' action='page.php' method='post'>
<table>
";
while ($list = mysql_fetch_object($req))
{
echo "<tr>
<td><INPUT type='text' name='quartier' value='$list->quartier' maxlength='50' size='50'></td>
<td><input type='text' name='prix12' value='$list->prix12' maxlength='20' size='20'></td>
<td><input type='text' name='prix34' value='$list->prix12' maxlength='20' size='20'></td>
<td><input type='text' name='prix5' value='$list->prix5' maxlength='20' size='20'></td>
</tr>";
}
echo "
<table>
<INPUT type='submit' value='Envoyer'>
</form>
</body></html>
";
echo "listing des prix au m2";
?> |