I am retrieving some data from Mysql table using php usng this command: $k=mysql_query("select * from user_data where user_login = '$login' limit 1;"); $r=mysql_fetch_assoc($k); I am displaying this data into a HTML table through PHP on my website using this: echo "<table border='1'>"; echo "<tr> <th>Survey</th> <th>Delight</th> <th>Dsat</th> <th>FCR</th> <th>TPR</th> <th>Quality</th> </tr>"; echo "<tr><td>"; echo $r['survey_count']; echo "</td><td>"; echo $r['Delight']; echo "</td><td>"; echo $r['Dsat']; echo "</td><td>"; echo $r['FCR']; echo "</td><td>"; echo $r['TPR']; echo "</td><td>"; echo $r['Quality']; echo "</td></tr>"; echo "</table>"; It displays the data correctly in a table but the problem is the table does not have all equal column width. How can I set the width of all the columns equal?? For ex this is how the current table looks like: I want all the column in the table to have same width...
Or set the total table width, as long as you set it wider than it's now <table border='1' width='500px'> HTML: Or preferably, use CSS ;-)