YiiMySQL modifies the database data, and yiimysql modifies the database. YiiMySQL modifies database data, yiimysql modifies database to learn the latest Yii Framework, and shares some learning experiences. it is suitable for beginners. please press ctrl + w in the first way? Php ** $ I Yii MySQL modifies database data and yiimysql modifies database
The latest Yii Framework is used to share some learning experiences. it is suitable for beginners. press ctrl + w // The first method.
UpdateByPk ($ id, $ attributes, $ condition, $ params); if ($ count> 0) {echo 'modified successfully ';} else {echo 'modification failed';}?>
// Method 2
FindByPk ($ id); $ model-> username = 'yiistudy '; $ model-> password = 'mysql '; $ count = $ model-> update (array ('username', 'password'); if ($ count> 0) {echo 'modified successfully ';} else {echo 'modification failed';}?>
Http://www.bkjia.com/PHPjc/1072012.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1072012.htmlTechArticleYii MySQL modify database data, yiimysql modify database latest learning Yii Framework, share some learning experience, suitable for beginners, please press ctrl + w // The first method? Php/** $ I...