Advanced recordset question
I am working on a entertainment website that has 2 tables, performerstbl which has perfID and performer columns.
The other table is an events table. It has all the info regarding the event. Date time, performer, performer bio, etc...
Works perfectly with one performer. Use and INNER JOIN to get info that I need between the 2 tables.
What I am trying to do is add a second performer on the public events page on any given date(needed very rarely).
On the addevent page I added a second menu to choose a performer. It dynamically pulls the names from the performertbl. That part works great.
I am trying to figure out how to use the perfID/performer name that the second menu generates to populate a seperate field. The problem is I have tried an INNER JOIN but got lost in the process.
Here is the existing recordset that works fine with one performer.
SELECT eventtbl.*, performertbl.firstname, weekdaytbl.weekday
FROM eventtbl INNER JOIN performertbl ON eventtbl.perfID = performertbl.perfID INNER JOIN weekdaytbl ON eventtbl.weekdayID = weekdaytbl.weekdayID
ORDER BY eventtbl.`date` LIMIT 50
I setup a perf2ID in the event table but realized the problem was going to be that 'performertbl.firstname' which is the name field is already being used..
Confusing but if you have ANY ideas I would appreciate help.