loop and array receive datas from database
<p>I recovered some information from my database and then I turn into the array using:</p>

<pre><code>&lt;?php $clients = explode(",",$data['comptes']) ; ?&gt;

&lt;?php $clients = explode(",",$data['comptes']) ;
    for ( $i = 0; $i &lt; count( $clients ); $i++ ) { 
 echo '&lt;option value="'.trim($clients[$i]).',"&gt;'.trim($clients[$i]).'&lt;/option&gt;'; 
} ?&gt;
</code></pre>

<p>I would then display all in a selection list.</p>

<p>Before the whole table is not empty, it displays a <code>print_r()</code>:</p>

<pre><code>Array (
    [0] =&gt; 1566 
    [1] =&gt; 1599 
    [2] =&gt;
)
</code></pre>

<p>Then for the selection list so I'm doing following code:</p>

<p>but yet it does not return me the last selection list is empty, I do not see where I made ​​my mistake because I have no error messages.</p>
