Ok, I see the problem... essentially you have something like
| Code: |
echo $variable .'Perth's '.$variable;
|
The apostrophe in "Perth's" is confusing PHP. To tell PHP you'd like to actually print the apostrophe, put a backslash in front of it.
| Code: |
echo $variable .'Perth\'s '.$variable;
|
The same problem can happen with quotes when they are used with echo... but the nuances between using quotes and single quotes/apostrophes with the echo function could fill a 5 page article.. which I should probably write at some point, like tomorrow.