Re: [ryan_dot] where filter that uses a field name?
Hello,
I have been reading this thread and I think it has the solution we need, but I am not sure. If I understand correctly, this is the case:
Some of the names and titles have been changed for communication purposes.
Category = plant_training_services
Course = courses
-----------------------------------------------------------------------------------------------------------------------
01. There are TWO tables: (1) Category and the other (2) Course
02. Inside of the Courses Table is a dropdown menu which is populated by the other table’s (Category) field titled “catergory_name”
03. The Courses need to be sorted by the associated Category field in the List View page.
04. Is this Correct? If so, this is EXACTLY what we are trying to accomplish. However, filtering the Courses with Category is not working for us. We must be doing something wrong.
Is the code below setting up a way for the “where” statement to filter the Category Table's field with the Course list (the Courses per Category)?
$escapedSection = mysql_real_escape_string( @$plant_training_servicesRecord['section'] );
We have tried to use the URL filter as written below, but since the category_name is from another table it does not work. Is this correct?
listPage.php?catergory_name=catNameGoesHere
Any help is appreciated!
studio-a
P.S.
Jason assisted us in another matter for this same project at
http://www.interactivetools.com/iforum/P81157#81157 if anyone is interested in reading additional information using two tables stucture. Now, IF we can only filter the listing!?