Jump to content

empty html table cells hidden


Go to solution Solved by mac_gyver,

Recommended Posts

How do I set empty table cells to hidden so that they don't show up on screen therefore all data in the table will be aligned correctly.

 

Here is what I have tried so far:

<tbody 
style="empty-cells:hidden"><?php} while($row=mysql_fetch_assoc($result)){ echo 
"<tr>  <td>{$row['CUST_ID']}</td>  <td>{$row['CUST_Forename']}</td>  <td>{$row['CUST_Surname']}</td>  <td>{$row['CUST_Email']}</td>  <td>{$row['CUST_Mobile']}</td>  <td>{$row['CUST_HomeNum']}</td>  <td>{$row['CUST_AddressL1']}</td>  <td>{$row['CUST_AddressL2']}</td>  <td>{$row['CUST_AddressL3']}</td>  <td>{$row['CUST_Postcode']}</td>  <td>{$row['J_RefNum']}</td>  <td>{$row['MANU_Name']}</td>  <td>{$row['J_Model']}</td>  <td>{$row['OS_Name']}</td>  <td>{$row['J_ReceivedBy']}</td>  <td>{$row['J_DateRec']}</td>  <td>{$row['J_FaultDesc']}</td>  <td>{$row['J_PassWinAdmin']}</td>  <td>{$row['J_DataRecYN']}</td>  <td>{$row['J_PowerSuppYN']}</td>  <td>{$row['JS_Status']}</td>  </tr>\n"; }

Any suggestions would be greatly appreciated thanks

Link to comment
https://forums.phpfreaks.com/topic/281878-empty-html-table-cells-hidden/
Share on other sites

  • 2 weeks later...
  • Solution

the OP in this thread solved this (and stopped making new threads for the same problem), when he finally got how to properly join his tables using the relationship between that tables, so that the query would retrieve the just the data he wants.

 

marking this thread as solved...

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.