"Tony" tony@ttiger.co.uk wrote:
$title = addslashes($result[title]);
[...]
I'm sure there is an easier way to do it but it works!
If you're restricted to base PHP, I'm not sure there is, but even then http://uk.php.net/manual/en/function.mysql-real-escape-string.php would be better than addslashes.
Hope that helps,