Jump to content

display data from database in table form


atika90

Recommended Posts

how i want to display data from database to look like this :

 

 

 

<table width="633" height="224" border="1">

  <tr bgcolor="#999900">

    <td width="45">Bil</td>

    <td width="121">Course_name</td>

    <td width="83">session</td>

    <td width="83">start_date</td>

    <td width="83">end_date</td>

    <td width="83">notes</td>

    <td width="89">pre-req</td>

  </tr>

  <tr bgcolor="#6A7AEA">

    <td rowspan="2">1.</td>

    <td rowspan="2" bgcolor="#6A7AEA">Math</td>

    <td>1st session </td>

    <td>1 jan 11 </td>

    <td>6 jan 11 </td>

    <td rowspan="2"> </td>

    <td rowspan="2"><image icon that will link to the oter site> </td>

  </tr>

  <tr>

    <td bgcolor="#6A7AEA">2nd session </td>

    <td bgcolor="#6A7AEA">8 jan 11 </td>

    <td bgcolor="#6A7AEA">15 jan 11 </td>

  </tr>

  <tr>

    <td bgcolor="#0066CC">2.</td>

    <td bgcolor="#0066CC">English</td>

    <td bgcolor="#0066CC">1st session </td>

    <td bgcolor="#0066CC">1 feb 11 </td>

    <td bgcolor="#0066CC">6 feb 11 </td>

    <td bgcolor="#0066CC"> </td>

    <td bgcolor="#0066CC"><image icon that will link to the oter site></td>

  </tr>

  <tr>

    <td rowspan="2" bgcolor="#6A7AEA">3.</td>

    <td rowspan="2" bgcolor="#6A7AEA">Science</td>

    <td height="29" bgcolor="#6A7AEA">1st session </td>

    <td bgcolor="#6A7AEA">8 march 11 </td>

    <td bgcolor="#6A7AEA">15 march 11 </td>

    <td rowspan="2" bgcolor="#6A7AEA"> </td>

    <td rowspan="2" bgcolor="#6A7AEA"><image icon that will link to the oter site></td>

  </tr>

  <tr>

    <td bgcolor="#6A7AEA">2nd session</td>

    <td bgcolor="#6A7AEA">16 march 11 </td>

    <td bgcolor="#6A7AEA">21 march 11 </td>

  </tr>

</table>

 

 

** all the view data is called from database including the icon image

thanks...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.