phpwiz Posted August 13, 2009 Share Posted August 13, 2009 ok i have a navigation.php that holds the nav stuff and i am trying to display the number of messages in the users' inbox and it isnt working can you please help here is the code <?php session_start(); require "connect.php"; $userfinal=$_SESSION['username']; $user=$userfinal; $namecheck = mysql_query("SELECT `message_id` FROM messages WHERE `to_user`='$userfinal'"); $count = mysql_num_rows($namecheck); ?> <div class='test'><div class='float'><div class='nav_top'</div> <table class='nav_mid'> <tr> <td> <div class='header_large'> General Options </div> <a href='home.php'>Homepage</a><br> <a href='logout.php'>Logout</a><br> <a href='news.php'>News/Updates</a><br><br> <div class='header_large'> PM options </div> <a href='inbox.php'>inbox[<?php $count ?>]</a><br> <a href='new_message.php'>Send a message</a><br><br> <div class='header_large'> Other Options </div> <a href='#'><s>Request a tutorial</s></a><br> <a href='#'><s>Request a graphic</s></a><br><br> <div class='header_large'> Tutorials </div> <a href='#'><s>Coding Tutorials</s></a><br> <a href='#'><s>Graphic Tutorials</s></a><br> <a href='#'><s>Random Tutorials</s></a><br><br> <div class='header_large'> Freebies </div> <a href='#'><s>Free codes</s></a><br> <a href='#'><s>Free graphics</s></a><br><br> </td> </tr> </table> <div class='nav_bot'></div><br><br><br></div></div> Link to comment https://forums.phpfreaks.com/topic/170058-simple-fast-easy-help/ Share on other sites More sharing options...
Mark Baker Posted August 13, 2009 Share Posted August 13, 2009 You might consider actually echoing the value of $count. That way, it might actually appear on the page. inbox[<?php $count ?>]</ to inbox[<?php echo $count ?>]</ Link to comment https://forums.phpfreaks.com/topic/170058-simple-fast-easy-help/#findComment-897122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.