PDO placeholder not being quoted....i think

Hahaha don’t you just love it when you do everything under the sun to figure out what is wrong with your code just to fine out that when you where setting the result $queryResults['name']; you used the wrong column name :smile:

So my problem was when i set the $foodCategory i used $queryResults['dishCategory']; as a placeholder for when i get around to going this query and never changed it to the actual column name “name”

Hopefully this will help others to just check over the simple things next time and make sure that it’s not something simple.

1 Like