this line and next few are one too many tabs. also put 1 space padding for = sign. so $query = " instead of $query=