HTML interesse |
|
Hallo ik heb een heel erg vaag probleem. Mijn forum berichten script begint namelijk met een lege regel zonder dat ik dat heb aangegeven. Misschien zien jullie het?
Voorbeeld op http://eric.sohosted.com/bevoc
Het script:
<?php
mysql_connect ('localhost','**','**' );
mysql_select_db ('**' );
$query = "SELECT * FROM phpbb_topics ORDER BY topic_last_post_id DESC LIMIT 7";
$uitvoer = mysql_query($query) or die (mysql_error());
while($list = mysql_fetch_object($uitvoer))
{
echo("<tr>
<TD width=\"12%\"><IMG height=\"10\" src=\"images/pijl.bmp\" width=\"10\" border=\"0\">
</td>
<td>
<a href=../forum/viewtopic.php?p=".$list->topic_last_post_id."#".$list->topic_last_post_id." target='_blank' title='Topic: $list->topic_title Bekeken: $list->topic_views Reacties: $list->topic_replies'></span>");
if (strlen($list->topic_title) > 15)
{
$afgekortwoord1 = substr($list->topic_title,0,15)."...";
echo("$afgekortwoord1");
}
else
{
echo("$list->topic_title");
}
echo("</td></tr>");
}
<?php $query = "SELECT * FROM phpbb_topics ORDER BY topic_last_post_id DESC LIMIT 7"; { <TD width=\"12%\"><IMG height=\"10\" src=\"images/pijl.bmp\" width=\"10\" border=\"0\"> </td> <td> <a href=../forum/viewtopic.php?p=".$list->topic_last_post_id."#".$list->topic_last_post_id." target='_blank' title='Topic: $list->topic_title Bekeken: $list->topic_views Reacties: $list->topic_replies'></span>"); if (strlen($list->topic_title) > 15) { $afgekortwoord1 = substr($list->topic_title,0,15)."..."; } else { echo("$list->topic_title"); } }
|