lisounder Posted February 8, 2011 Share Posted February 8, 2011 Content still displays slashes in front of quote. What am I doing wrong? Thanks. { $row = $rs->GetRowAssoc(false); $photos[$i]["id"] = $row["id"]; $photos[$i]["photo_path"] = $config_index["homepage_photos_path"]."/".stripslashes($row["photo"]); $photos[$i]["description"] = stripslashes($row["descr"]); if ($row['type'] == 'l') $photos[$i]["link"] = stripslashes($row["link"]); elseif ($row['type'] == 'p') $photos[$i]["poll"] = get_poll($row['link']); $rs->MoveNext(); $i++; } Link to comment https://forums.phpfreaks.com/topic/227059-stripslashes-not-working/ Share on other sites More sharing options...
BlueSkyIS Posted February 8, 2011 Share Posted February 8, 2011 the data should not have extra slashes to start, then you wouldn't have to remove them. i suggest that you update the code that inserts the data so that extra slashes are not added, then update the database to remove extra slashes that were already added. Link to comment https://forums.phpfreaks.com/topic/227059-stripslashes-not-working/#findComment-1171428 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.