replace mysql to mysqli