www.webdeveloper.com
Results 1 to 4 of 4

Thread: help me with this code??

  1. #1
    Join Date
    Jul 2012
    Posts
    6

    Question 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.

  2. #2
    Join Date
    Jul 2012
    Posts
    29
    i think it's just the ending ! </td></tr></tbody></table></td></tr></table>

  3. #3
    Join Date
    Jul 2012
    Location
    Stockport, Manchester, United Kingdom
    Posts
    11
    what error is it giving you and you forgot to close the $blabberDisplayList in your description

    Code:
    ' . $the_blab . '</td>';

  4. #4
    Join Date
    Jul 2012
    Location
    Stockport, Manchester, United Kingdom
    Posts
    11
    $blabberDisplayList .= '
    <table width="100&#37;" 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
  •  
HTML5 Development Center



Recent Articles