checked for connection error ran and fixed php file