Hi all,
I am new at this and stuck for days…trying everything I could find from Google and these Forums.
I have one MySQL table that I need to pull data from.
I need to pull all records where AgentID = 1234
Also, pull all records where OfficeID = 4321 (and AgentID != 1234 to prevent dupes)
Then display the results with AgentID records first, if they exist, then the OfficeID records.
I tried a UNION, but could not find a way to sort or show Agent first, Office second.
Tried array_merge and two queries/results, but the merged data was mixed instead of Agent First data, again, with no way to sort by Agent first.
Any ideas would be greatly appreciated!
Bill