Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $rowcount = mysql_num_rows($result);
- while($row = @MYSQL_FETCH_ARRAY($result, MYSQL_ASSOC))
- {
- $bars = array (
- 'bar1.png',
- 'bar2.png',
- 'bar3.png',
- 'bar4.png',
- 'bar5.png',
- 'bar6.png',
- 'bar7.png',
- 'bar9.png',
- 'bar9.png',
- 'bar10.png'
- );
- //$bar = $bars[array_rand($bars)];
- $bar = $bars[$i++%10];
- $clicks = rand ( 2000 , 6000 );
- ?>
- <tr>
- <span title="<?php echo $row['url']; ?>" class="site_stats">
- <td id="rk<?php echo $row['id']; ?>" class="chart"><?php echo $row['url']; ?></td>
- <td id="rt<?php echo $row['id']; ?>" class="value"><img src="stats-images/<?php echo $bar; ?>" width="<?php echo $clicks / 15; ?>" height="15" /><?php echo $clicks; ?></td>
- </span>
- </tr>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement