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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -