Ok so this is probably a dumb question but like I mentioned im kinda new at PHP. Ok so say I wanted to put a background color on a row in my php table. How would I do that? This is what I have:
<html><body><?phpecho "<center><b>Hello and welcome to the Tech Support Page. Here you can find simple and thourough instructions on the many different tasks you encounter day to day. This will be the source of help for those who don't know what to do or for those who have done it before but can't quite really remember that one detail and need a guide to go back and check..</center></b><br>"; echo "<center><table border=1>"; echo "<tr>"; echo "<td><span style=\"font-weight: bold;\">File</span></td>"; echo "<td ><span style=\"font-weight: bold;\">Date</span></td>"; echo "</tr></center>"; $current_dir="/applications/fgl/support"; //list all the files in current directory if ($handle = opendir($current_dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $full_file="$current_dir/$file"; $type=filetype($full_file); if($type=="file"){ echo "<tr bgcolor=white>"; echo "<td>$file</td>"; echo "</tr>"; } } } closedir($handle); } ?></body></html>
Thats all I have so far. Now I know normally you would put the bg color code with the TD or TR like so:
<tr bgcolor="red">or <td bgcolor="blue">
however since there is an echo it's not letting me use it. All I want to do is make the row that has the word file and the word date have a green background. Can someone help me?