Jump to content

Change font colour of text pulled from database


Sharon Ann

Recommended Posts

Hi

This is probably a very simple question but I have tried a few different ways today and the php keeps sending me error messages.

I want to change the colour of the staff number to red when displayed on the page, here is the bit of code I have to work with,

echo "Staff Number: ";
echo ($row['f_staff_id']) . " ";


Where do I put the <font color "red"> </font> tags in the second row?

Is it like this?


echo "<font color "red">($row['f_staff_id'])</font> . " ";

Can anyone sort me out with the correct way?

Thanks
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.