24 Feb
2007
24 Feb
'07
6:26 p.m.
"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, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Webmaster/web developer, statistician, sysadmin, trainer, koha dev, GNU/Linux, debian, gobolinux, gnustep, online shops, mailing lists. Near Weston-super-Mare, Somerset, England. http://www.ttllp.co.uk/