merge cells in one

Posted by alkitbi on Stack Overflow See other posts from Stack Overflow or by alkitbi
Published on 2010-06-06T06:02:03Z Indexed on 2010/06/06 6:12 UTC
Read the original article Hit count: 341

Filed under:
|
|
|
$query1 = "select * from linkat_link where emailuser='$email2' or linkname='$domain_name2' ORDER BY date desc LIMIT $From,$PageNO";

now sample show :

<table border="1" width="100%">
    <tr>
        <td>linkid</td>
        <td>catid</td>
        <td>linkdes</td>
        <td>price</td>
    </tr>
    <tr>
        <td>1</td>
        <td>1</td>
        <td>&nbsp;domain name</td>
        <td>100</td>
    </tr>
    <tr>
        <td>2</td>
        <td>1</td>
        <td>&nbsp;hosting&nbsp; plan one</td>
        <td>40</td>
    </tr>
    <tr>
        <td>3</td>
        <td>2</td>
        <td>&nbsp;domain name</td>
        <td>20</td>
    </tr>
</table>

How do I merge two or more  When there are numbers of cells same on the Table in this way sample?

<table border="1" width="100%">
    <tr>
        <td>catid</td>
        <td>linkdes</td>
        <td>price</td>
    </tr>
    <tr>
        <td>1</td>
        <td>linkid(1)- domain namelinkid(2)- hosting&nbsp; plan one</td>
        <td>10040</td>
    </tr>
    <tr>
        <td>2</td>
        <td>&nbsp;domain name</td>
        <td>20</td>
    </tr>
</table>

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql