Code: Select all
$title = "$row->title";
$findtitle ="/ /";
$replacetitle ="-";
$titlereplace = preg_replace ($findtitle, $replacetitle, $title); I can go through the current DB to get rid of them, but these are idiots are will easily add more slashes. So is there a way I can do the $findtitle to look for spaces (like it does now) AND "/" in one go? Then $replacetitle replaces the spaces AND slashes with a "-"??