Results 1 to 6 of 6

Thread: How to output colorful data to php page from mysql ?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    How to output colorful data to php page from mysql ?

    Hi all i got this table in mysql database and i want to output to a php page all the names in database and each name should have the same color as it specifed for that name in database. For example if name cindy has color code 16711935 then her name should should be displaied using that code which represent pink. I be happy if some one show me how i can achive this task using php.Thanks


    Code:
    create table NameColor
         (
         ID        int auto_increment primary key,
         Name      varchar(32),
         color       int
       
         );
    Last edited by tony007; Jul 4th, 2006 at 02:04 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width