hello experts, i'm just a newbie that are trying to learn php for the school project, i need some help in order to do the code since i was really have almost zero knowledge about this things, i have learn c++ but php is quite different for me, if the experts here can help me, i will really happy. i will show my code...

as you guys can see, my code are mess, what im trying to do is to display the bmi of each rain in a table, with their name,mass and height, currently im stuck at this point, i dont know what to do for next, if someone help me i will be really grateful, sorry my english is really bad since im not from english speaking country. please help me. and i know there is more simplier code than this, but this is all i know, and i dont even know if this is the right way to do or not.