Trying to filter the results after a query. Need to find a string inside of a tinytext string. That looks like: accounting, ACT, algebra 1, algebra 2, American history, biology, calculus, economics, English, European history, geometry, grammar, literature, piano, proofreading, psychology, reading, SAT math, SAT reading, SAT writing, statistics, violin, vocabulary,
Code - subject string to find is $subject
and the list to search is $row['SubjectList']
$result = mysql_query($query, $dbConn);
$i=0;
while ($row = @mysql_fetch_assoc($result)){
$results[$i]['Name'] = $row['Name'];
$results[$i]['Zip'] = $row['ZipCode'];
$results[$i]['SubjectList'] = $row['SubjectList'];
$i++;
}