DIV Help

Reply

Join Date: Sep 2008
Posts: 140
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

DIV Help

 
0
  #1
Dec 25th, 2008
Hi
I had to echo a table from a database in a html column (td) but the problem is the width of that column is increasing when show that para.... Please help me...
Thanks
Rajeesh
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 140
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Re: DIV Help

 
0
  #2
Dec 25th, 2008
Urgently help me please.....
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 357
Reputation: death_oclock will become famous soon enough death_oclock will become famous soon enough 
Solved Threads: 37
death_oclock's Avatar
death_oclock death_oclock is offline Offline
Posting Whiz

Re: DIV Help

 
0
  #3
Dec 25th, 2008
Would you care to be a little more specific? The width of what column is increasing? And why is this a problem? HTML tables will fit to the largest width by default.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 19
Reputation: ashafaaiz is an unknown quantity at this point 
Solved Threads: 1
ashafaaiz ashafaaiz is offline Offline
Newbie Poster

Re: DIV Help

 
0
  #4
Dec 26th, 2008
Hi,
What exactly you want? Just display all the fields of table in the html table? You wont bother about the width rather you should give border="0" in the table. for eg:- if you have two fields as Name,Age in "person" table, then

  1. // made database connections in php
  2. //$sql=mysql_query("select * from person");
  3. <form>
  4. <table border="0">
  5. <tr>
  6. <td>Name</td><td>Age</td>
  7. <?
  8. while($row=mysql_fetch_array($sql))
  9. {
  10. ?>
  11. <td> <? echo $row['Name'];?></td>
  12. <td><?echo $row['Age'];?></td>
  13. <?
  14. }
  15. ?>
  16. </table>
  17. </form>
It automatically displays all Name and Age in person.
Last edited by peter_budo; Dec 29th, 2008 at 5:40 am. Reason: Code tag correction, please use [code] not <code>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC