Forum Moderators: coopster
<table width="100%">
<tr>
<td>wrap long line of text here</td>
</tr>
</table>
Can't get this to work in php though. Now I want to embed the php code in this table...here is the code:
echo "<TABLE width="100%"><TR><TD><a href=$INFO[board_url]/composer.php/act/SF/f/$row[fid] class=link7><font size='3'>$row[fname]</font></a> ".$row[fdescription];
echo "</TD></TR></TABLE>";
Don't worry about the code really, my main concern is the code performs a loop, but it keeps going across the page causing users to scroll across to the right really far. The looping should theoretically wrap inside the table, but I guess the syntax is wrong. How can I make this code wrap in the table?
echo "<TABLE width=\"100%\"><TR><TD><a href={$INFO['board_url']}/composer.php/act/SF/f/{$row['fid']} class=\"link7\"><font size=\"3\">{$row['fname']}</font></a> ".$row[fdescription];
echo "</TD></TR></TABLE>"; <form name="form1" method="post" action="Votes-<? echo $Location?>.htm">
<select name="Location" size="1">
<option value="<? echo $Location?>" selected>Please Select</option>
<?
$query = 'select distinct Location from Scores '
."where Flag='A'";
$result = mysql_query($query);
while ($row=mysql_fetch_assoc($result))
{
$Location = $row ['Location'];?>
<option value="<? echo $Location?>"><? echo $Location?></option>
<?
}
?>
<div align=center>
<input type="submit" name="Submit" value="Go!">
</form>
I can not imagine myself writing all this in an echo'';....no way...
Here is part of the code
--------------------------------------------------
echo "<TABLE width=\"100%\"><TR><TD>";
while($row = $DB->fetch_row($result) and ($counter<$navlimit)) {
if ($row[tdescription]!="") {$tdescription = " [".$row[tdescription]."]";}
else {$tdescription="";};
if ($row[fdescription]!="") {$fdescription = " [".$row[fdescription]."]";}
else {$fdescription="";};
if ($oforumid!= $row[fid]) {
$counter+=1;
echo "</TD><TD width=\"45px\"><a href=$INFO[board_url]/index.php?showuser=$row[fid] class=link7><font size='3'>$row[fname]</a></font> - <a href=$INFO[board_url]/index.php?act=Mail&CODE=00&MID=$row[fid]><font size='2'>(Email)</font></a> ".$row[fdescription];
------------------------------------------------------
This table won't wrap...even if I declare a td px size.