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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Changing colour of text in a PHP page

  • 14-04-2005 3:47pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


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


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




  • Registered Users, Registered Users 2 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, Registered Users 2 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