Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
operator OR
  • hi, I want to do the following query:
    SELECT * FROM `actualites` WHERE `categorie` = 'geie' OR `categorie` ='sitmb' OR `categorie` ='atmb' I tried : $data = Model_Actualite::find(
    'all',
    array('where' => array( 'categorie' => 'geie'),
    'or' => array( 'categorie' => 'sitmb'),
    'or' => array( 'categorie' => 'atmb'),
    'order_by' => 'id'
    )); but my operator 'OR' doesn't work, does someone know what is the usage for the 'OR' operator, I can't find it.
    Thank you
  • There is no operator called 'or', don't know where you got that from. The docs mention 'or_where', maybe you can try that?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion