Thread: Online/Hits
View Single Post
03-08-2008, 01:54 PM
#2
Alex Eyre is offline Alex Eyre
Alex Eyre's Avatar
Status: Designer
Join date: Aug 2006
Location: Manchester
Expertise:
Software:
 
Posts: 1,132
iTrader: 5 / 100%
 

Alex Eyre is on a distinguished road

Send a message via MSN to Alex Eyre

  Old

Hey Richard K,

You're going to have to provide us with some of the code already implemented on the site so that we can continue to use the stylesheet. But if you merely need to add the text you have displayed in a list then use the following:

HTML Code:
<ul>
 <li><b>Online:</b>5</li>
 <li><b>Hits:</b>13445</li>
</ul>
Unless you need to implement some form of PHP, which im guessing you do, then you replace the number with the variable from a mysql query (or other query) and echo it.

PHP Code:
<?php
// I am assuming you have already connected to the MySQL DB
// And set a query with the variable '$hits' and '$online'.
?>

<ul>
 <li><b>Online:</b><? echo $online "?></li>
 <li><b>Hits:</b><? echo $hits "?></li>
</ul>

Alex