Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <font face="comic sans MS">
  2. <img src="image/header.jpg" width="100%">
  3. <table border="1" widht="100%" height="50" align="center" bgcolor="#FBFBEF">
  4. <tr>
  5. <td width="90%" align="left" valign="bottom" ><img src="image/start.gif" alt="icon" width="26" height="26"></td>
  6. <th><b>Welcome, Guest,please <a href="login.php" style="text-decoration:none; color:green">Login</a>" or "<a href="register.php" style="text-decoration:none; color:red">Register</a></b></th>
  7. </tr>
  8. <tr>
  9. <td width="50%" align="left" valign="bottom"><font size="5" id="welcome"><strong>Welcome To Squad 3.0 Ghz FORUM</strong></font> </td>
  10. <td id=clock align="right" valign="center"><strong><iframe src="http://free.timeanddate.com/clock/i4eh41xm/n108/tlsg/fn7/fs12/tct/pct/ftb/tt0/tw1/tm1/th1" frameborder="0" width="182" height="20" allowTransparency="true"></iframe><strong></td>
  11. </tr>
  12. <table border="1" bgcolor="#FBFBEF" width="100%">
  13. <tr>
  14.  
  15. <td align="left" width="70%"><b><a href="index.php" ><img src="image/homeicon.png" widht="20" height="20"></td>
  16.  
  17. <td align="right" width="7%">
  18. <?php
  19. include 'connection.php';
  20. $query1="select count(email) as num_user from user_login";
  21. $result1=mysql_query($query1);
  22. $row1=mysql_fetch_array($result1);
  23. echo '*'.$row1['num_user'].'* Member';
  24. ?>
  25. </td>&nbsp <td align="right" width="5%">
  26. <?php
  27. include 'connection.php';
  28. $query2="select count(topic_id) as num_topic from topic";
  29. $result2=mysql_query($query2);
  30. $row2=mysql_fetch_array($result2);
  31. echo '*'.$row2['num_topic'].'* Topic';
  32. ?>
  33.  
  34.  
  35. </td>&nbsp <td align="right" width="7%">
  36. <?php
  37. include 'connection.php';
  38. $query3="select count(topic_id) as num_comment from comment";
  39. $result3=mysql_query($query3);
  40. $row3=mysql_fetch_array($result3);
  41. echo '*'.$row3['num_comment'].'* Comment';
  42. ?>
  43.  
  44. </td>
  45. </tr>
  46. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement