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>

Sorry, I couldn't understand what you are trying to do and also didn't get your problem.
Please explain better.

i have that table, and the results from sql i whant to be like this

collum1 collum2 collum3 collum4 collum5 ecc(id1)
collum1 collum2 collum3 collum4 collum5 ecc(id2)
collum1 collum2 collum3 collum4 collum5 (id3)

i dont know how to work with <td>and displaydata from sql...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.