I am working on a part were user post their status.! And that the post will be seen by other members in community, and their "i want to hide delete post option form other members of group/community" or simply delete post option only available to user who has posted it..! By taking below advice i have edited my code accordingly but its giving me a error Parse error: syntax error, unexpected 'if' (T_IF)
code.php
echo '<div class="col-lg-12">
<div class="social-feed-box">' .if($_SESSION['via'] == $row['via']){.
'<div class="pull-right social-action dropdown">
<button data-toggle="dropdown" class="dropdown-toggle btn-white">
<i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu m-t-xs">
<li><a href="post_delete.php">Delete</a></li>
</ul>
</div>' .}. '<div>.....