Hi, I'm working on a website, and I'm pretty new to PHP. I'm trying to use it to automate the JavaScript inside the cells of the tables, both to save typing and to have a system that will fend for itself. Here is the code for the site:
<HTML>
<HEAD>
<TITLE>Test Page</TITLE>
<style type="text/css">
<!--
td.out {
color: black;
background: "#BBBBBB";
font-family: sans-serif;
}
td.over {
color: white;
background: "#111177";
font-family: sans-serif;
}
-->
</style>
</HEAD>
<BODY bgcolor="#666666">
<?php
$mose = " class="out" onMouseOver="this.className='over'" onMouseOut="this.className='out'";
print ("
<table rowspan=100%>
<tr>
<td $mose colspan=70%>Hi</td>
</tr>
<tr>
<td $mose colspan=70%>Hello</td>
</tr>
</table>
");
?>
</BODY>
</HTML>
I will describe the output, but it might be better to see for yourself (shouldnt be too hard). All it out puts is "Hi Hello ");" and as hard as I try, I just can't figure out how to make it work. Any help would be appreciated!