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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -