Hy i have this table, unfort i dont know how to retrieve the data from sql and to put it one under each one i have all the 18 tablesi whant to do something like this:
(id1) 2 3 4 5 6 7 8 .....
(id2) 2 3 4 5 6 7 8 .....
in this table...
<?php include('config.php'); error_reporting(0); ?>
<?php
$qry=mysql_query("SELECT * FROM articles", $con);
if(!$qry)
{
die("Query Failed: ". mysql_error());
}
?>
<table border=1>
<tr>
<td rowspan="3">3</td>
<td colspan="6">mandatori riceve</td>
<td colspan="6">mandatori consegna</td>
<td colspan="6">saldo</td>
</tr>
<tr>
<td colspan="3">carelli</td>
<td></td>
<td></td>
<td></td>
<td colspan="3">carelli</td>
<td></td>
<td></td>
<td></td>
<td colspan="3">carelli</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>carrelli con piastra luc.rosso</td>
<td>carrelli con piastra luc.nero</td>
<td>carelli - senza piastra</td>
<td>ripiani</td>
<td>prolunghe</td>
<td>doppie prolunghe</td>
<td>carrelli con piastra luc.rosso</td>
<td>carrelli con piastra luc.nero</td>
<td>carelli - senza piastra</td>
<td>ripiani</td>
<td>prolunghe</td>
<td>doppie prolunghe</td>
<td>carrelli con piastra luc.rosso</td>
<td>carrelli con piastra luc.nero</td>
<td>carelli - senza piastra</td>
<td>ripiani</td>
<td>prolunghe</td>
<td>doppie prolunghe</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
</tr> <tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
<td>7</td>
</tr>
</table>