create cloud Tag use mysql database

This is other way to list cloud tag using mysql database.

<?php
$rtag = mysql_query("select * from tampilantag limit 50") or die(mysql_error());
if(mysql_num_rows($rtag) >0)
{
while($atagnya = mysql_fetch_array($rtag))
 {
if ($atagnya[dipake]>=18)
$ukuranfont ="18"."px";
else if ($atagnya[dipake]<9)
$ukuranfont ="9"."px";
else
$ukuranfont ="$atagnya[dipake]"."px";
echo"<a href=\"$atagnya[namatag].tag\" style=\"font-size:$ukuranfont\">$atagnya[namatag]</a>"." ";
 }
}
?>

This method will only display 50 Tag list from mysql database. We can change it with we like.

At tampilantag table, we need field :
namatag : variable char
dipake : variable Int

Enjoy it

Incoming search terms for the article:

mysql create cloudtag

Respond to this post