Hi
Could someone please tell me why the following code won't work I'm new to this and can't see the problem.
I'm trying to make one of the cells in my table a certain length as it has a capacity of 100 characters.The problem code is in bold.
echo '<table align="center" cellspacing="2" cellpadding="2">
<tr>
<td><b>Grind No</b></td>
<td><b>Exam</b></td>
<td><b>Subject</b></td>
<td><b>Level</b></td>
<td><b>County</b></td>
<td><b>Town/Region</b></td>
<td><b>Extra Location Details</b></td>
<td><b>Contact Name</b></td>
<td><b>Contact Number</b></td>
</tr>';
// Fetch and print all the records
while ($row = mysql_fetch_array($result,MYSQL_NUM))
{
echo "
<tr>
<td>FG$row[0]</td>
<td>$row[1]</td>
<td>$row[2]</td>
<td>$row[3]</td>
<td>$row[4]</td>
<td>$row[5]</td>
<td width=20>$row[6]</td>
<td>$row[7]</td>
<td>$row[8]</td>
</tr>\n";
Tks
Could someone please tell me why the following code won't work I'm new to this and can't see the problem.
I'm trying to make one of the cells in my table a certain length as it has a capacity of 100 characters.The problem code is in bold.
echo '<table align="center" cellspacing="2" cellpadding="2">
<tr>
<td><b>Grind No</b></td>
<td><b>Exam</b></td>
<td><b>Subject</b></td>
<td><b>Level</b></td>
<td><b>County</b></td>
<td><b>Town/Region</b></td>
<td><b>Extra Location Details</b></td>
<td><b>Contact Name</b></td>
<td><b>Contact Number</b></td>
</tr>';
// Fetch and print all the records
while ($row = mysql_fetch_array($result,MYSQL_NUM))
{
echo "
<tr>
<td>FG$row[0]</td>
<td>$row[1]</td>
<td>$row[2]</td>
<td>$row[3]</td>
<td>$row[4]</td>
<td>$row[5]</td>
<td width=20>$row[6]</td>
<td>$row[7]</td>
<td>$row[8]</td>
</tr>\n";
Tks