I am trying to join two tables; the purpose being able to search and display event information for an artist that is entered by the user.
The tables are as follows:
artist table: [id],[name]
events table: [id],[artist_id],[venue_name],[city],[state],[date],[time]
I created a search engine, but what I want to do is when an artist name is entered into the text box, the code will go out to my database and will look through the artist table to see what name was entered and then grab the id that matches the entered name and then go to the events table to find that distinct artist_id and display all of the event information for the certain artist that was entered.
I would really like help with how to do this and I'm not the greatest at this, but I am trying! Thanks:)