I’m stumped on this one. I have a database with simple text data. I load the small database into a multidimensional array. The data is there, I have verified this. Next, I attempt to STRIPSLASHES or STR_REPLACE them and nothing happens. If I manually create the same ARRAY, it works correctly. ???
Here is the code sample:
[php]
while($row = mysql_fetch_array($dbResID)) {
$all[] = $row;
}
$temp = $all[0][2]; // This record contains the following…
//$temp = “TESTING: line 1 \r\n\r\n **** line 2 **** \r\n\r\n **** line 3 **** \n”; // This line works…
$DisplayLines = str_replace("\r\n", “
”, $temp);
echo ($DisplayLines);
[/php]
(Also, I displayed the entire database into a table
…etc… and the data is all in place!) |