I have this code:
<div style="width:100%; position:fixed; z-index:999; top:0; left:0; padding:10px; background-color:#666666; height:50px;">
<h3><button id="inbox_button" >Inbox <?php echo $messages_num; ?></button></h3>
<div id="inbox_div" style="background-color:#eeeeee; width:350px; height:400px; overflow-y:scroll; display:none; margin-top:20px; padding:0px;">
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/admin/includes/menu_messages.php'; ?>
</div>
</div>
i am using require_once to include a php file. the file (menu_messages.php) has the PHP variable $messages_num; in, how can i echo this on the Inbox button - i have echoed it above but its not displaying