Im not going to post on the old thread so here it is.
I can not get this to work! I have tried both methods mentioned. I get no errors and no data, if I throw in junk, I can get errors.
I have spent 2 and a half hours playing with this and nothing. The database is ss2 and here is my query - as it works in php, some stuff left out obviously.
SELECT
master_ev.ev_date,
animals.aname,
species.species,
species.subspecies,
events_ref.ev_name,
master_ev.events_idx,
notes.note,
weight.weight,
foodinv.food_type
FROM
master_ev
INNER JOIN animals ON (master_ev.animal_id=animals.animal_id)
INNER JOIN species ON (animals.species=species.species_idx)
INNER JOIN events_ref ON (master_ev.events_idx=events_ref.event_id)
LEFT OUTER JOIN notes ON (master_ev.ev_id=notes.ev_id)
LEFT OUTER JOIN weight ON (master_ev.ev_id=weight.ev_id)
LEFT OUTER JOIN length ON (master_ev.ev_id=length.ev_id)
LEFT OUTER JOIN feedings ON (master_ev.ev_id=feedings.ev_id)
LEFT OUTER JOIN foodinv ON (feedings.perm_id=foodinv.perm_id)";
Is that too complicated? It works fine with pure php. modx has access to the db. Sorry Im new to php and mysql and I have trouble getting a grip on new things
Thanks