for my work, i must to send multiples sms with an api and i want to put numbers in array from mysql like this :
(the numbers are in my database)
I want like this :
   $list_num = array(
        '0601020301','0601020302','0601020303','0601020304','0601020305','0601020306','0601020307','0601020308','0601020309','0601020310',
        '0601020311','0601020312','0601020313','0601020314','0601020315','0601020316','0601020317','0601020318','0601020319','0601020320',
        '0601020321','0601020322','0601020323','0601020324','0601020325','0601020326','0601020327','0601020328','0601020329','0601020330'
    );
i have try this, but doesnt work :
$result = mysql_query("SELECT * FROM test");
if (!$result) {
     die('Requête invalide : ' . mysql_error());
}
$a = array();
while ($row = mysql_fetch_assoc($result)) // moi je fais comme ca un mysql_fetch_* 
{
     $a[] = $row['numero'];
     foreach ($a as $val) {
          $ret .= "$val";
          if ($ret == end($a))
               //var_dump($val);
          {
               //echo "'".$val."'";
          }
          else
          {
               echo "'".$val."',";
          }
     }
}
Probably wrong method, i have search before here before, Thanks a lot.
 
     
     
    