Specifies a default value for a column. With one exception, the default value must be a constant; it cannot be a function or an expression. This means, for example, that you cannot set the default for a date column to be the value of a function such as NOW() or CURRENT_DATE. The exception is that you can specify CURRENT_TIMESTAMP as the default for a TIMESTAMP or DATETIME column.https://dev.mysql.com/doc/refman/5.7/en/create-tab...
Cookie станут видимыми только после перезагрузки страницы, для которой они должны быть видны.php.net/manual/ru/function.setcookie.php
if($ip != $ia['ip']){var_dump($ip, $ia['ip']);
if($ip != $ia['ip']){и думай.
$records = R::dispense('table', 100);
for($i = 0; $i < 100; $i++) {
$records[$i]->data = $someData;
}
R::storeAll($records);