Add new table
Posted: Wed Aug 16, 2006 4:23 pm
I have been editing a page on my site, but cannot seem to find the right variables to add another table underneath it.
The table is:
As you can see, which table the user see's depends on how many 'points' they have.
My problem is that it only shows one box with one item in. I want many items.
Would the code look something like this:
I am really stuck with this one, can anyone point me in the right direction?
Thanks.
The table is:
Code: Select all
$pics .= '
<td><img src="'.$VAR[0].'/images/gifts/bargain/1.gif" height="50" width="50"></td>
<td>test</td>
<td>10 points</td>
<td><input type="radio" name="pics" value="10"></td>';
}
else {
$pics .= '
<font color="red">
<td><img src="'.$VAR[0].'/images/gifts/bargain/1.gif" height="50" width="50"></td>
<td>test</td>
<td><font color="red">10 points</font></td>';As you can see, which table the user see's depends on how many 'points' they have.
My problem is that it only shows one box with one item in. I want many items.
Would the code look something like this:
Code: Select all
$pics .= '
<td><img src="'.$VAR[0].'/images/gifts/bargain/1.gif" height="50" width="50"></td>
<td>test</td>
<td>10 points</td>
<td><input type="radio" name="pics" value="10"></td>';
}
else {
$pics .= '
<font color="red">
<td><img src="'.$VAR[0].'/images/gifts/bargain/1.gif" height="50" width="50"></td>
<td>test</td>
<td><font color="red">10 points</font></td>';
}
[code here??] {
$pics .= '
<td><img src="'.$VAR[0].'/images/gifts/bargain/2.gif" height="50" width="50"></td>
<td>test</td>
<td>5 points</td>
<td><input type="radio" name="pics" value="5"></td>';
}
else {
$pics .= '
<font color="red">
<td><img src="'.$VAR[0].'/images/gifts/bargain/2.gif" height="50" width="50"></td>
<td>test</td>
<td><font color="red">5 points</font></td>';Thanks.