FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » syntax question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: syntax question [message #174323 is a reply to message #174322] Sat, 04 June 2011 18:45 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 04-06-2011 20:16, Co wrote:
> Hi,
>
> I have this code inside a php page to display a table.
>
> $outputList .= '
> <table width="100%" border="0"><tr><td width="12%" valign="top"
> rowspan="4"><div style=" height:80px; overflow:hidden;"><a
> href="profile.php?id=' . $member_id . '" target="_self">' .
> $user_pic . '</a></td></tr>
> <tr ><td width="40%" ><div class="name" align="left">' . $firstname .
> ' ' . $lastname . ' &nbsp;<font color="#000000" style="font-size: 9pt;
> font-weight: normal"> ' . $date_day . ' ' . $date_month . ' ' .
> $date_year . '</div>
> </td></tr><tr><td width="100%" class="title"><a
> href="Printbb_message.php?id=' . $id . '"> ' . $title . '</a></td></
> tr><tr><td width="100%" valign="left">' . $subject . ' </td></tr></
> table>' if ($i < $itemsPerPage){ echo '<hr>'; }
> ';
>
> this outputlist is displayed in the page and only if the record is not
> the last on the page I want a line drawn underneath.
> if ($i < $itemsPerPage){ echo '<hr>'; }
>
> How do I fit this code in. I can't get it right.
>
> Regards
> Marco


$outputList .= '<table width="100%" border="0">';
$outputList .= '<tr><td width="12%" valign="top"
rowspan="4"><div style=" height:80px; overflow:hidden;"><a
href="profile.php?id=' . $member_id . '" target="_self">' .
$user_pic . '</a></td></tr>';

$outputList .= '<tr ><td width="40%" ><div class="name" align="left">' .
$firstname . ' ' . $lastname . ' &nbsp;<font color="#000000"
style="font-size: 9pt; font-weight: normal"> ' . $date_day . ' ' .
$date_month . ' ' . $date_year . '</div></td></tr>';

$outputList .= '<tr><td width="100%" class="title"><a
href="Printbb_message.php?id=' . $id . '"> ' . $title . '</a></td></
tr><tr><td width="100%" valign="left">' . $subject . ' </td></tr>';

$outputList .= '</table>'*;*

if ($i < $itemsPerPage){ echo '<hr>'; }
';


I think the ';' (between the '*'above was missing?


--
Luuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: comment utiliser l'addresse book de thunderbird
Next Topic: help with regular expressions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 04:06:31 GMT 2024

Total time taken to generate the page: 0.04263 seconds