PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi all, Im new to ph and this forum! I'm taking a beginners class in PHP and I'm having trouble a bit of trouble. Below is my code. I finally got the actually temp conversion to work properly, however I wanted it to be displayed in a table. One column for Celsius and for the featherweight equivalent. (or the opposite way, you get the point)
I have tried outputting to the table, with no luck tho I do think I am on the right track. Any suggestions or guidance? Thanks
Just a couple of little errors; you are trying to print the farenheit temperature inbetween two cells. If you look below you will see that I have done the calculation and stored it in a variable called $ftemp, then inserted this variable inside the next cell. Also, you had not enclosed your <tr>s and <td>s in quotation marks. Anything thats not a php function or variable must be enclosed in quotation marks. I have also removed the <br/> because i couldnt see why they were there?
Heres the edited code: