0) {
$data = mysqli_query($con, "UPDATE sms SET appid='$appid', appkey='$appkey', te_id='$te_id', te_ids='$te_ids', sign='$sign', admin_phone='$admin_phone' WHERE id=1");
if ($data > 0) {
echo " ";
} else {
echo ("");
}
} else {
$data = mysqli_query($con, "INSERT INTO sms (appid, appkey, te_id, te_ids, sign, admin_phone) VALUES ('$appid', '$appkey', '$te_id', '$te_ids', '$sign', '$admin_phone')");
if ($data > 0) {
echo " ";
} else {
echo ("");
}
}
}
$con->close();
?>