Results 1 to 4 of 4

Thread: Set colors in echo

  1. #1
    Join Date
    May 2008
    Posts
    413

    Set colors in echo

    I have a problem
    Code:
    $table_values = mysql_fetch_row($result);
    
    echo $table_values[1];
    I want to put my echo in color, with reference to my variable $table_values[4] which contains the color to apply.

    How can I achieve my target?

  2. #2
    Join Date
    May 2008
    Posts
    271

    Re: Set colors in echo

    Code:
    $table_values = mysql_fetch_row($result);
    
    echo '<FONT COLOR="'.$table_values[4].'">'.$table_values[1].'</FONT>';
    can be like that ...

  3. #3
    Join Date
    May 2008
    Posts
    413

    Re: Set colors in echo

    Thank you, it works very well!

    Two other questions:

    - Can we put a vertical scroll bar in a simple way in a <div?
    - I have an <input type = "text" and I would like the text that I entered in the text box remainder when the page refreshes. Is it easily possible?

    I had thought to put a variable value ...

  4. #4
    Join Date
    May 2008
    Posts
    271

    Re: Set colors in echo

    I would say not for the elevator in the DIV

    for input / text it takes more value:

    Code:
    echo '<INPUT TYPE="TEXT" NAME="field_text" VALUE="'.$value.'" />';

Similar Threads

  1. Replies: 5
    Last Post: 09-04-2012, 05:12 PM
  2. Need to know about Kyocera Echo
    By Corwinn in forum Portable Devices
    Replies: 4
    Last Post: 15-02-2011, 05:35 PM
  3. Replies: 3
    Last Post: 05-09-2009, 01:41 PM
  4. Information on php echo
    By Rebeccak in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 09:56 AM
  5. Sound has an echo
    By Tominfl in forum Windows Software
    Replies: 2
    Last Post: 15-09-2008, 04:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,656,735,782.03040 seconds with 17 queries