Can I add css to php?

0 votes
asked Nov 13, 2015 in PHP by venessa115 (180 points)

1 Answer

0 votes
answered Nov 14, 2015 by user234 (980 points)

Just put the CSS outside the PHP Tag like this

<body>
    <table>
    <tr><th>ID</th><th>hashtag</th></tr>
    <?php
    while($row = mysql_fetch_row($result))
    {
        echo "<tr onmouseover=\"hilite(this)\" onmouseout=\"lowlite(this)\"><td>$row[0]</td>                <td>$row[1]</td></tr>\n";
    }
    ?>
    </table>
</body>
Welcome to I Can Crack, where you can ask questions and receive answers from other members of the community.

68 questions

47 answers

3 comments

5,318 users

...