Technically it should be "I," because the sentence is elliptical (words have been omitted): "You think you know better than I do what I had to eat last night." However, this sounds very highfalutin and old-fashioned, and no one would actually speak like this today. So use "me" in this sentence.