I have a problem (I think) to solve the problem but due to having a PHP novice, answer me. ..
The questions below, print the tag cloud on my page. I would like to add "ORDER BY TAGID ASC" in this query so that tags appear in accordance with their ID #, but I do not know where it is placed (I did not explicitly write that question).
& lt ;? Php $ tag = $ data- & gt; Select ("tag", "*", tap, 0, 500); If (! Empty ($ tag)) Forex ($ tag as $ tag): $ count = $ data-> Counter_record ("website tag", array ("tag-id" = & gt; $ tag ["tagID"])); If (number of $ & gt; 20) $ font_size = $ counts; Other $ font_size = 11; ? & Gt; & Lt; A style = "font-size: & lt ;? php echo $ font_size? & Gt; px;" Href = "& lt ;? php echo base_url." Coupon / "Get_sef_url ($ tag [" tagID "]," tag ")? & Gt; /" & gt; & Lt ;? Php echo $ tag ["tagName"]? & Gt; & Lt; / A & gt; & Lt ;? Php endforeach; ? & Gt; Any help would be appreciated? Thanks!
You can try
Count_record ("website_Tag", array ("tag-id" = & gt; $ tag ["tagID"])); If (number of $ & gt; 20) $ font_size = $ counts; Other $ font_size = 11; ? & Gt; & Lt; A style = "font-size: & lt ;? php echo $ font_size? & Gt; px;" Href = "& lt ;? php echo base_url." Coupon / "Get_sef_url ($ tag [" tagID "]," tag ")? & Gt; /" & gt; & Lt ;? Php echo $ tag ["tagName"]? & Gt; & Lt; / A & gt; & Lt ;? Php endforeach; ? & Gt;
Comments
Post a Comment