-
How can i add this java script code to php code??
This is the php 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>
This is javascript-
<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>
I want to add javascript code to php cod so that i can get like and unlike option on my status.How can i do this?
-
whan put that javascript code below that php code it shows some error
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