Hello When someting is getting Eco'ed out by PHP, can i decided the size of what's getting ecoed out and how? the line looks like this <? categories(); echo "<br>Popular Tags<br>"; include "tags.php"; ?> PHP:
not quite sure what you mean by controlling the size of what's being output. could you elaborate more please?
if you have a look over at http://rizzler.se/news/index.php you will se that the tags are HUGHE... i want them smaller, like standard size 12.
Haha, wow, I would have never guessed you meant that. Just modify the HTML that the script outputs. The code you posted doesn't help. Post the code of tags.php please.
sorry nico! im bad at explaning anyway here is tags.php TAGS.PHP <?php $values = ''; $result = mysql_query("SELECT tags FROM news"); while($row = mysql_fetch_array($result)) $values .= $row['tags']." "; $values = explode(' ', $values); $values=(array_count_values($values)); array_multisort($values, SORT_DESC); $values=array_slice($values, 0,10); //SHUFFLE $randomized_keys = array_rand($values, count($values)); foreach($randomized_keys as $current_key) { $values2[$current_key] = $values[$current_key]; } //ZA IZRACUN foreach ($values2 as $name=>$value) { $kolk+=$value; $ss+=1; } //ZA IZRACUN //ZA IZPIS foreach ($values2 as $name=>$value) { $size=$tagsize*$value/$kolk; echo "<font size='$size'><a href='$urlweb/?site=search&keyword=$name'>$name</a></font> "; } //ZA IZPIS ?> PHP: