Thanks Shawn!!!

I just figured it out after I posted the question.

BTW, why is "$result = " is necesarry?