Hi i am new to zend and mysql so please ignore if this is a silly ques. i have two tabels: users and user_cars. Now the user_cars table contains same user with multiple cars. i.e. if a user has three different cars, then the user_cars table contains three entries for that user. Now i want to select a particular user from user_cars table. The userid is given to me. can anyone please tell me how to do that.
users:
userid, username, password, fname, lname // columns
user_cars:
id, userid, car_name, purchase_date // columns
so i have a userid and want to select all the rows from user_cars with the given userid. can anyone please tell me how to do this.