Hi all..
just wondering if someone can give me some advice..
I have text stored in a mysql field which is on multiple lines like…..
[QUOTE]
hdfshsf sdfsdf
sdfsdaf
asdfsdffd asdfasd
asdfasdf
asdf
Now when i call it from mysql its displayed in a line like….
[QUOTE]
hdfshsf sdfsdf sdfsdaf asdfsdffd asdfasd asdfasdf asdf
now i need it to display as its stored in mysql..
the code that is calling it is here…
[code=php] if ( (isset($order->products[$i][‘attributes’])) && (sizeof($order->products[$i][‘attributes’]) > 0) ) {
for ($j=0, $n2=sizeof($order->products[$i][‘attributes’]); $j<$n2; $j++) {
echo ‘<br/><small> <i> – ‘ . $order->products[$i][‘attributes’][$j][‘option’] . ‘:<br/> ‘ . $order->products[$i][‘attributes’][$j][‘value’] . ‘</i></small>’;
}
and the specific part from the code above which displays the text is..
[code=php] ‘ . $order->products[$i][‘attributes’][$j][‘value’] . ‘
So, basically i just need some way of showing the text exactly as its stored in mysql..
thanks in advance for any tips or advice..