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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -