You have never created a variable called $mealplan, so none of these will do anything useful. What are you actually trying to do? What’s the problem you’re trying solve? What are you trying to accomplish by setting the event and end date of a mealplan to today’s date?
I can’t see in your code where you are only showing the meal plans belonging to the logged in user. Did you want to show all meal plans - the whole table? There is no where condition and you are passing the whole dataset. I am also guessing you are not looping in your template so you’re just showing the first record.
I think you need to add a few dummy users to your database, set them up with their own meal plans, and for testing have a couple with the same plan to ensure it will handle that too. I’m getting the feeling there is still a point-and-click approach to programming here. There is no doubt you are using code you don’t understand, specifically the set(compact()) as Zuluru pointed out, and which I went to pains to explain how both of those work.
I am just concerned the end-user’s data isn’t being secured.