php - How to show a div when user is logged in and on their profile but disable it when they go on some other user profile -


i'm trying figure out how can disable upload picture functionality on profile isn't own. user should able view upload button on own profile , not other profiles.

<?php     if(logged_in() === true && user_id_from_username($username) === true && isset($_get['username']) === true){      $username  = $_get['username'];     $user_id = user_id_from_username($username); ?>  <script type="text/javascript">     $('.profile_wrapp').mouseenter(function(){         $('.select_buttons').fadein('fast');     }).mouseleave(function(){         $('.select_buttons').fadeout('fast'); }); </script>  <?php        }else{ ?>  <script type="text/javascript">     $('.select_buttons').hide();     </script>  <?php        } ?> 


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -