Hello World! v.2

Hello World! v.2

Cool as well :D

[Yii]Mencari semua data di MYSQL dengan kondisi tertentu.

Syntax MySQL

>
SELECT FROM Abc WHERE fk_id=$fk_id;


*Syntax di Yii

>
Abc::model()->findAll(array(‘condition’=>’fk_id=:fk_id’,
> ‘params’=>array(‘:fk_id ‘=>$id)));