-
help me with this code??
how can i place this code
<a href="javascript:;" onClick="doAction('<?php echo $postid;?>','like');">Like (<span id="<?php echo $postid;?>_likes"><?php echo $data->like;?></span>)</a>
<a href="javascript:;" onClick="doAction('<?php echo $postid;?>','unlike');">Unlike (<span id="<?php echo $postid;?>_unlikes"><?php echo $data->unlike;?></span>)</a>
below this code
$blabberDisplayList .= '
<table width="100%" align="center" cellpadding="4" bgcolor="#CCCCCC">
<tr>
<td width="10%" valign="top">' . $blab_pic . '</td>
<td width="90%" valign="top" style="line-height:1.5em;"><span class="greenColor textsize10">' . $blab_date . ' <a href="profile.php?id=' . $uid . '">' . $username . '</a> said:</span><br />
' . $the_blab . '</td>
when i do it,it shows some error.
-
i think it's just the ending ! </td></tr></tbody></table></td></tr></table>
-
what error is it giving you and you forgot to close the $blabberDisplayList in your description
Code:
' . $the_blab . '</td>';
-
$blabberDisplayList .= '
<table width="100%" align="center" cellpadding="4" bgcolor="#CCCCCC">
<tr>
<td width="10%" valign="top">' . $blab_pic . '</td>
<td width="90%" valign="top" style="line-height:1.5em;"><span class="greenColor textsize10">' . $blab_date . ' <a href="profile.php?id=' . $uid . '">' . $username . '</a> said:</span><br />
' . $the_blab . '</td>
<a href="javascript:;" onClick="doAction(\'<?php echo $postid;?>\',\'like\');">Like (<span id="<?php echo $postid;?>_likes"><?php echo $data->like;?></span>)</a>
<a href="javascript:;" onClick="doAction(\'<?php echo $postid;?>\',\'unlike\');">Unlike (<span id="<?php echo $postid;?>_unlikes"><?php echo $data->unlike;?></span>)</a>';
That should be ok
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks