Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update_data_migration()
- {
- $driver_migration = $this->get_driver_migration();
- foreach($driver_migration as $data )
- {
- $query = "
- UPDATE users SET username = ?
- WHERE id = ?
- ";
- $this->db->query($query, array(md5($data->hp. microtime(). $data->email), $data->id));
- }
- }
- function get_driver_migration()
- {
- $driverMigration = $this->db->query(
- "
- SELECT *
- FROM users
- WHERE create_date = '2019-08-07 09:55:55'
- AND user_type_id = 50
- "
- )->result();
- return $driverMigration;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement