I have a texterea, i wrote "1" without space.
My goal :
I want to show the value of $data['CMD_COM_LIV']
if
The problem : You can see this picture i have a little space between the beginning of the texterea and "1".
I tried to use n12br and i got the same result.
In PHPMYADMIN, CMD_COM_LIV is in UT8_general_ci, NULL and text and the value doesn't have any space...
It's only when i want to show the result in the texterea.
Thanks.
<div style="margin-top:15px;">
<label>Commande :</label><br />
<textarea rows="5" cols="60" name="com_cmd">
<?php if(!empty($data['CMD_COM_COM'])) { echo nl2br($data['CMD_COM_COM']);} ?></textarea>
<div class="clear"></div><br />
<label>Livraison :</label><br />
<textarea rows="5" cols="60" name="com_liv">
<?php if(!empty($data['CMD_COM_LIV'])) { echo $data['CMD_COM_LIV']; }?></textarea>
<div class="clear"></div><br />
<label>Facturation :</label><br />
<textarea rows="5" cols="60" name="com_fact">
<?php if(!empty($data['CMD_COM_FACT'])) { echo $data['CMD_COM_FACT']; }?></textarea>
</div>