i have a table with 2 calumes,"id" and "mobile", i want get all mobile number of database and insert into a array like this $parameters['to'] = array("mobile_number1","mobile_number2","mobile_number3" ,...,"mobile_number last in database"); how to change this code for my request:
DB_Connect(); // connect function
$result = DB_Select("SELECT * FROM bs_Content");
$num_rows = mysqli_num_rows($result);
while($row = mysqli_fetch_assoc($result)){
$i = $row['id'];
$id[$i] = $row['mobile'];
}
for($i=1 ; $i<=$num_rows ; $i++){
print_r($id[$i]);
}
DB_Disconnect();
// total i wand like array("9380009010","9380002020","930002021");