Ok, I orginially did the <pre></pre> and what happened was the spaces did infact come up but it blew my site up because it didnt wrap....
I used to use the Nl2br a few months back but someone who was helping me on previous code said that using mysql_real_escape_string($_POST['newsBody']); was the same function just newer... I now assume its wrong lol...
So i did this code up and yet get the same outcome with no spaces for output.
if ("Update The Newsletter!" == $HTTP_POST_VARS["submit"]) {
$imageName = mysql_real_escape_string($_POST['imageName']);
$newsBody1 = mysql_real_escape_string($_POST['newsBody']);
$newsBody = nl2br($newsBody1);
$title = mysql_real_escape_string($_POST['title']);
$sql = "UPDATE news SET image = '$imageName', text = '$newsBody', title = '$title' WHERE id='1001'";
$result = mysql_query($sql);
}
I never took out
$newsBody1 = the mysql_real_escape_string($_POST['newsBody']);
giving me....
if ("Update The Newsletter!" == $HTTP_POST_VARS["submit"]) {
$imageName = mysql_real_escape_string($_POST['imageName']);
$newsBody1 = $_POST['newsBody'];
$newsBody = nl2br($newsBody1);
$title = mysql_real_escape_string($_POST['title']);
$sql = "UPDATE news SET image = '$imageName', text = '$newsBody', title = '$title' WHERE id='1001'";
$result = mysql_query($sql);
}
but again same outcome... with no spaces... what am i doing wrong?