php - How to change every email value in a table -


i work zend framework 1.12 , mysql. in database have 4k rows, , have unique e-mail value.

how should change value every row? better use php script or use mysql query?

example of desired result:

enter image description here

use php script makes use of zend framework, eg:

$data = array(     'email'      => $mynewemail, );  $n = $db->update('users', $data, 'user_id = ' . $userid); 

http://framework.zend.com/manual/1.12/en/zend.db.adapter.html


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -