RewriteCond %{REQUEST_URI} ^(\/)*(msk|spb|region)*\/page
RewriteRule ^(.*)$ /go to? [R=301,L]
<html>
<body>
<div id="id" data-var="param">текст</div>
<buttom id="send">отправить</buttom>
<script>
$(document).on("click", '#send', function () {
var param = $("id").attr(data-var);
var style = $("id").text();
$.ajax({
type: "POST",
url: "/ваш урл/",
data: {param1:param , param2:text},
success: function (msg) {
var obj = JSON.parse(msg);
if (obj.message == 'success'){
window.location.href = "куда редиректить";
}else{
если ошибка ваше сообщение }
}
});
});
</script>
</body>
</html>
$a = mysql_query("
LOAD DATA INFILE '/home/admin/web/public_html/car_characteristic_value.csv' REPLACE INTO TABLE `characteristic_value`
FIELDS TERMINATED BY ','
ENCLOSED BY '\''
LINES TERMINATED BY '\r\n';
") or die('SQL ERROR:' . mysql_error());;
$string = 'Текст текст текст не анон текст текст';
$arr_string = explode(' ', $string);
$search = array_search('анон',$arr_string);
if (strtolower($arr_string[$search-1]) === 'не'){
echo $arr_string[$search-1].' '.$arr_string[$search];
}else {
echo $arr_string[$search];
}