#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    206
    Rep Power
    11

    Reformatting the contents of table rows


    Hi,

    I'm trying to take the content from table rows and reformat it.

    You can see a sample structure of the HTML below:

    Code:
    <table><tr>			
    <td class="fixData" align="right" width="40%">Team 1</td><td class="fixData" align="center" width="10%">&nbsp;v&nbsp;</td><td class="fixData" align="left" width="40%">Team 2</td>						 <td class="fixData" align="right" width="10%"><a href="#">Results</a></td>
    </tr><tr>			
    <td class="fixData" align="right" width="40%">Team 3</td><td class="fixData" align="center" width="10%">&nbsp;v&nbsp;</td><td class="fixData" align="left" width="40%">Team 4</td>						 <td class="fixData" align="right" width="10%"><a href="#">Results</a></td>
    </tr></table>
    I'm trying to change it to:

    <tr>
    <td class="newfixData"><a href="result.php?Team1-Team2">Team 1 v Team 2</a></td>
    </tr>


    Any ideas how I could do this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,401
    Rep Power
    594
    Since I don't see any PHP, I don't know what you are asking.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo