Jump to content

Small Problem


Joshua F

Recommended Posts

echo "<tr>
<td class='trow2' align='center' valign='center' width='1'></td>
<td class='trow2' valign='center'>
<strong><a href='server.php?view=details&id=" . $list['id'] . "'>" . capitalizeFirstCharacter($list['servername']) . "</a></strong>
<div class=\"stat2\">
<div class=\"stat\">
if(!$sock=@fsockopen($list_f['serverip'],$list_f['serverport'], $num, $error, 1)) {
echo "<font color='red'><b>Offline</b></font>";
} else {
echo "<font color='green'><b>Online</b></font>";
}
</div>
</div>
<div class='smalltext'>" . $list['shortdescription'] . "</div>
</td>
<td class='trow1' valign='middle' align='left' style='white-space: nowrap'><span class='smalltext'>" . $list['revision'] . "</span></td>
<td class='trow2' valign='middle' align='right' style='white-space: nowrap'><font size='4px'>" . $voteAmount . " Votes</font></td>
</tr>";

 

How can I make this echo code work?

Link to comment
https://forums.phpfreaks.com/topic/213099-small-problem/
Share on other sites

mm ur formatting is horrid

echo "<tr>
<td class='trow2' align='center' valign='center' width='1'></td>
<td class='trow2' valign='center'>
<strong><a href='server.php?view=details&id=" . $list['id'] . "'>" . capitalizeFirstCharacter($list['servername']) . "</a></strong>
<div class=\"stat2\">
<div class=\"stat\">";
if(!$sock=@fsockopen($list_f['serverip'],$list_f['serverport'], $num, $error, 1)) {
echo "<font color='red'><b>Offline</b></font>";
} else {
echo "<font color='green'><b>Online</b></font>";
}
echo "</div>
</div>
<div class='smalltext'>" . $list['shortdescription'] . "</div>
</td>
<td class='trow1' valign='middle' align='left' style='white-space: nowrap'><span class='smalltext'>" . $list['revision'] . "</span></td>
<td class='trow2' valign='middle' align='right' style='white-space: nowrap'><font size='4px'>" . $voteAmount . " Votes</font></td>
</tr>";

 

try that

 

 

Link to comment
https://forums.phpfreaks.com/topic/213099-small-problem/#findComment-1109820
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.