php - sql: result be only data with a specific item_id -


In this code, the data can only contain specific item_id for the result item_id = 3 ?

  $ articles = $ db read-> Select () - & gt; From ('Articles', Array ('article_id', 'name', 'Item_id')) - & gt; Included in use ('item', 'item_id', array ('item_name')) - & gt; Order (Aray ('Updated DESC'));    

Try it out:

  $ articles = $ DbRead-> Choose from ('article', array ('article_id', 'name', 'item_id')) () - & gt; Included in use ('item', 'item_id', array ('item_name')) - & gt; Where ("items.item_id = 3") - & gt; Order (array ('updated DESC'));    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -