thehulk Posted February 21, 2010 Share Posted February 21, 2010 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 More sharing options...
jskywalker Posted February 21, 2010 Share Posted February 21, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.