I have an id in table x representing a state in another table.
For instance.
Table x has a state id of 1 and that id of 1 in table z represents a state.
How would I loop through this in php and mysql to display the value of that id from table z?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An
INNER JOINto make sure it connects.SELECT z.id FROM x INNER JOIN z ON (x.id = z.x_id)