This is my very simple code...
$sql = mysql_query("SELECT * FROM table WHERE id = '1' LIMIT 1");
$array = mysql_fetch_assoc($sql);
the problem is that each field that is a textfield has a line break after them.
$array['field'] = "test
";
like that... that's the output. With a line break...
I can't strip out the line break using
str_replace("\n", "", $value);
it doesn't even detect it...
but I see it in my html code and my forms which includes the line break causing the code to use incorrect inputs...
I just don't understand what is causing it. Anyone here encountered this problem?