Jump to content

PHP - retrieving records from MySQL database [different options]


fawcett44

Recommended Posts

Hi, I have created a form which users can input text into various fields in a database. I have seperately created a different page which retrieves these records and puts them into a table, This all waorks fine including putting the users name who submitted the form, into the table next to the relating record. Is it possible to, when retrieving the records it displays each record as a different colour text, also is it possible to retrieve the record and relate a colour to a user so each user has a different colour?

 

Any help/tips are greatly appreciated.

Link to comment
Share on other sites

Would the colour within the table have to be stored as Hex? Also how would i get the colour/hex from the table into a tag if there are multiple rows? (E.G i am attempting to give users a different colour to other users within a message board)

Thanks for your help.

Link to comment
Share on other sites

Ill probably have about 10 colours.

 

The problem is getting the colour from the Dbase to the page tag. Would it retrieve the colour from Dbase and put into variable, then insert variable into tag????

 

I just dont know. Any ideas would be greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.