150617 8:42:00 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.43-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
150617 8:42:00 InnoDB: Assertion failure in thread 139884593407744 in file trx0purge.c line 840
InnoDB: Failing assertion: purge_sys->purge_trx_no <= purge_sys->rseg->last_trx_no
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: dev.mysql.com/doc/refman/5.5/en/forcing-innodb-rec...
InnoDB: about forcing recovery.
$users_mts[$id] = [
"sum_mts" => round($sum, 2),
"phone" => $phone,
];
Before Marionette 2.1, the Controller had another use, which was a general-purpose, white-label object. This was confusing given its other use within the Router, and its name, which carries so much meaning in the context of MVC frameworks.
As of v2.1, a new Class is available for your use: Marionette.Object. We recommend using Marionette.Object instead of Marionette.Controller in all situations outside of the Router.
Не буду же я включать вывод ошибок и переписывать код...
<input type="text" name="answers[0][answer]">
<input type="checkbox" name="answers[0][right]" value="1" >
<input type="text" name="answers[1][answer]">
<input type="checkbox" name="answers[1][right]" value="1" >
<input type="text" name="answers[2][answer]">
<input type="checkbox" name="answers[2][right]" value="1" >
onSuccess: function() {
this.ui.upload.show();
this.ui.edit.show();
this.ui.proceed.show();
this.ui.actions.show();
},
onError: function() {
this.ui.upload.show();
this.ui.edit.hide();
this.ui.proceed.hide();
this.ui.actions.hide();
}
<?php
$arr = [
'0' => [
'foo1' => 'bar1',
'foo2' => 'bar2',
'foo3' => 'buz1',
'floor' => 1,
],
'1' => [
'foo1' => 'bar1',
'foo2' => 'bar2',
'foo3' => 'buz2',
'floor' => 7,
],
'3' => [
'foo1' => 'bar3',
'foo2' => 'bar4',
'foo3' => 'buz3',
'floor' => 1,
],
];
$result = [];
foreach ($arr as $item)
{
$key = $item['foo1'].'&'.$item['foo2']; // Разделитель для ключа нужно подбирать исходя из того, что хранится в foo1 и foo2
if (!array_key_exists($key, $result))
{
$result[$key] = [
'foo1' => $item['foo1'],
'foo2' => $item['foo2'],
'dependence' => []
];
}
$result[$key]['dependence'][$item['floor']] = $item['foo3'];
}
$result = array_values($result);
echo '<pre>';
var_dump($result);
echo '</pre>';
?>