Welcome Guest, Not a member yet? Register   Sign In
Formatting Tables with CSS
#4

[eluser]maniac[/eluser]
I must admit I'm totally new at all this. This is how I was taught to do the tables -

<table width="57%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<th>Employee ID</th>
<th>Employee First Name</th>
<th>Employee Last Name</th>
<th>Department</th>
</tr>
&lt;?php foreach($result as $row): ?&gt;
<tr>
<td>&lt;?=$row->empid?&gt;</td>
<td >&lt;?=$row->empfirstname?&gt;</td>
<td >&lt;?=$row->emplastname?&gt;</td>
<td >&lt;?=$row->deptid?&gt;</td>
</tr>
&lt;?php endforeach; ?&gt;
</table>


Messages In This Thread
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:23 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:36 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:37 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 08:38 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:06 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:48 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:05 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:43 PM
Formatting Tables with CSS - by El Forum - 04-16-2010, 12:17 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 05:54 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:39 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 08:18 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:53 PM
Formatting Tables with CSS - by El Forum - 04-17-2010, 01:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB