Php Array Check If Index Exists Sql Syntax For Update Table In Sql