Mysql to Mysqli update