Jump to content

I need some help


thehulk

Recommended Posts

I'm new to php I just started a course in it this semester and our final is making a game of battleship that works. I have made the grids for the game, but now I need to make it work.

I am unsure of whether it is possible or not to use php to change the background color of a table cell and if it is how? I am also going to try and add sounds, but I am unsure of how to do this.

 

Link to comment
https://forums.phpfreaks.com/topic/192824-i-need-some-help/
Share on other sites

copied from http://www.tizag.com/htmlT/bgcolor.php:

<table bgcolor="lime" border="1"><tr>
<td>A lime colored table background using color names.</td>
</tr></table>

<table bgcolor="#ff0000" border="1"><tr>
<td>A red colored table background using hexadecimal values "#FF0000".</td>
</tr></table>

<table bgcolor="rgb(0, 0, 255)" border="1"><tr>
<td>A blue colored table background using RGB values "rgb(0, 0, 255)".</td>
</tr></table>

 

PHP can only generate a HTML page, so.....

if you make a program that generates above than ...

Link to comment
https://forums.phpfreaks.com/topic/192824-i-need-some-help/#findComment-1015717
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.