this is sort of similar to my initial question, as some of the fields I am retrieving will than be used later in the insert question I asked above
I want to grab the info for a part where the part is associated with the printer being displayed, and the client has access to that specific printer.
Code:
SELECT part_id, part_info FROM parts WHERE part_info LIKE %$searchTerms% AND
MATCH( SELECT printer_id FROM parts_printer WHERE parts.part_id = parts_printer.part_id )
AGAINST($this->printerArray);
for most parts, the printer_id will actually result in an array or printers, rather than a single printer... will the match clause check each printer in the partprinter array to the usersprinters ($this-printerArray) that is located in the session.
and also, if it does match one of printers, will it abort the search for that part? because I already know the part belongs to that printer, and if the user has access to the printer, there is no need to check if there the user has access to another printer in the range of possibilities
Bookmarks