OK I thought this was solved, but not in IE - I continually get errors about a missing ')'. FF and Safari have no problems
I'm displaying data via php from a mysql db. I want to display the data, and add a button called Volunteer at the end. When the user clicks the button, data will be passed to a javascript function that will display a dialog window with yet more data in it.
Here is how I am displaying the data:
while($row = mysql_fetch_array($result))
{
$gameno = $row['id'];
if ($row['location'] == "PVI") {
echo "<tr class='home'><td>";
} else {
echo "<tr><td>"; }
echo $row['day'];
echo "</td><td>";
$newdate = date("M d",strtotime($row['date']));
echo $newdate;
echo "</td><td>";
echo $row['time'];
echo "</td><td>";
echo $row['opponent'];
$opponent = $row['opponent'];
echo "</td><td>";
echo $row['location'];
echo "</td><td>";
if ($row['location'] == "PVI") {
echo "<input type=\"button\" value=\"Volunteer\" onclick=\"popup('$gameno', '$newdate', '$opponent')\" >";
echo "</td></tr>";
} else {
echo "</td></tr>";
}
}
?>
</table>
</div?
}
I end up getting errors in IE only - FF and Safari display perfectly. If I take out the row where I set up the button, there are no errors. I just can't figure out how to display this correctly I guess. Any ideas out there?