Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Changing colour of text in a PHP page

Options
  • 14-04-2005 4:47pm
    #1
    Registered Users Posts: 202 ✭✭


    hey all, the following code is used to print out information in a table

    what i want to be able to do is change the colour of the info in the table

    any help greatly appreciated!

    echo "<table border='1'>";
    echo "<tr> <th>Game</th>
    <th>Description</th>
    <th>Price</th>
    <th>Qty</th>
    <th>Format</th></tr>";
    while ($row = mysql_fetch_array($sql_result))
    {

    echo "<tr><td>";
    echo "<a href=\"".$row."\">".$row."</a>";
    echo "</td><td>";
    echo $row;
    echo "</td><td>";
    echo $row;
    echo "</td><td>";
    echo $row;
    echo "</td><td>";
    echo $row;
    echo "</td></tr>";
    }
    echo "</table>";
    }


Comments

  • Registered Users Posts: 1,481 ✭✭✭satchmo


    Just use a <font> tag, you don't need any php for that.


  • Registered Users Posts: 4,276 ✭✭✭damnyanks




  • Registered Users Posts: 1,268 ✭✭✭hostyle


    satchmo wrote:
    Just use a <font> tag, you don't need any php for that.

    <font> tag? If you're living in the 90's, maybe. Use CSS.


  • Registered Users Posts: 1,481 ✭✭✭satchmo


    hostyle wrote:
    <font> tag? If you're living in the 90's, maybe. Use CSS.
    If he doesn't even know how to change the colour of text, I think dumping CSS on him mightn't be the smartest idea.


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    satchmo wrote:
    If he doesn't even know how to change the colour of text, I think dumping CSS on him mightn't be the smartest idea.
    Indeed. If he hasn't got to grips with HTML and the whole server-client thing, CSS is likely to cause his little brain to melt.


  • Advertisement
Advertisement