Answer the question
In order to leave comments, you need to log in
How to get the desired values from mySQL (connection)?
I need to get data from a database table, according to certain parameters:
I select all tags from one table -
SELECT * FROM prefix_record_tag WHERE tag = 'my tag'
Answer the question
In order to leave comments, you need to log in
As far as I understand, you need a LEFT JOIN
query like:
SELECT "here are all the fields from the two tables that you need" FROM prefix_record_tag
LEFT JOIN prefix_record_descirption ON (prefix_record_tag.material_id = prefix_record_descirption.record_id)
WHERE prefix_record_tag.tag = 'my tag'
is rather pseudo code, but the gist is hopefully. clear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question