removed unnecessary lines(?) in script and put php variable in quotes - still doesn't work