Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

HCochranSmith on "Pulling Specific Records Into A Pod Field Based on MySQL"

$
0
0

I'm using Pods 2.3.9 & MySQL 5 to construct a user application for registering students, tracking courses and instructors, and generating transcript records.
I have a Pod field called Instructor that needs to pull data from a related Pod and that's Pod's field is called person_type.
A person_type may be Instructor, Student or Instructor and Student [check box select].
In MySQL the data is stored in person_type and a person that is both an instructor and a student is stored as ["Instructor","Student"]
I need to get the Pod field Instructor to show a list of ALL persons who are Instructors (they may or may not also be a student).
I've tried several variations on the SQL statement
person_type = ...
person_type LIKE...
person_type IN...
all without success
If anyone has an idea of what I'm doing wrong or how I can get this to work I'd greatly appreciate the help. I'm new to WordPress, Pods and MySQL so this is quite a learning curve.


Viewing all articles
Browse latest Browse all 5530

Trending Articles