$mplist=0; //utk digunakan pada array.
$sqlJumMP = "SELECT user_id
FROM ipms_user
WHERE takwim_id='".$takwim_id."'
AND process_type = '0'";
$resultJumMP = mysql_query($sqlJumMP) or die ('Error sqlJumMP !'.mysql_error());
while ($rowJumMP = mysql_fetch_array($resultJumMP))
{
$arr_mplst[$mplist]=$rowJumMP[user_id]; //start array
$mplist++; //letak ++ untuk penambahan nilai seterusnya
}
$mpOnList = implode(',',$arr_mplst);
echo $mpOnList;
hasil :
377,378,380,381,382,383,384,385,386,387,388,389
ayus dan syuhada
nursyuhada.com
PHP: Contoh Penggunaan Array 1 Demensi
Tuesday, August 01, 2006
Posted by ayus at 12:22 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment