A. event_choices
event_id | res_id |
4 | 10 |
B. restaurants
res_id | res_name |
10 | xyz |
C. event
event_id | event_name |
4 | birthday |
I’ve been trying inner join to try match the names to id but been unsuccessful
select event_id as id from event_choices inner join restaurants on res_id.id = res_name
any help would be greatly appreciated, very new to php/mysql
could work.
If you select
*instead ofevent.event_nameyou should get all data and be able to pick from it. You can also select specific fields in the form of<table>.<field>.EDIT: added
res_name