Jump to content

empty html table cells hidden


daniel0816

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...

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.