Below you will find the mysql code. I can view the data when i look at it via mysql but when i go to php i am unable to view the data.
Here is the error i am getting when i try to view the code in php:
MySQL said: Error #1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM clients, users, agents_action, clients_agents_rel WHERE clients.id = client' at line 1
Can you help me out with this.
SELECT users.full_name, users.user_email, clients.bus_name, clients.contact_fname, clients.contact_lname, clients.bus_phone, agents_action.setup_date, agents_action.merchant, agents_action.price_mo, agents_action.setup_fee, agents_action.source FROM clients, users, agents_action, clients_agents_rel WHERE clients.id = clients_agents_rel.client_id AND users.id = clients_agents_rel.agent_id
Thank you,
ericjw316