This code for inserting variables into a mysql db as rows doesn't work (PHP)

I'm trying to get variables to input as rows to columns in a mysql database (I'm new to both mysql and php) via php. However, it doesn't seem to work and this test code I put in fails every time. Again I'm new to this, so if I'm making a stupid mistake please point it out nicely.