I just noticed that when I use addslashes for a string in a function and return that string no slash will be added to the string like this: the above would return "Rose's book" instead of "Rose\'s book", it that right?
Actually it was not the only statement in the function, I thought the problem was with it but it wasn't. .