My point is, use $addslashes() rather than a direct call of addslashes(). Please note the dollar sign in front.