MYSQL and Array with PHP for create Tag Cloud

Posted by asilloo on Stack Overflow See other posts from Stack Overflow or by asilloo
Published on 2010-06-14T08:06:25Z Indexed on 2010/06/14 8:12 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

Hi,

I'm trying to make a Tag cloud for every user in own page, I'm using PHP5 and Mysql, My table named "tags" and I want to make a array but in short way. The table like below,

The array can be like for user1 array={[car,1],[cat,null],[pen,1],[dvd,1],[cd,null]}

  Username    totaltag   tag1 tag2 tag3 tag4 tag5
  admin       5          car  cat  pen  dvd  cd
  user1                  1         1    1    
  user2                  1    2    12        1
  user3                  3    2         10   1

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql