require '../db.php';
$id = $_POST['id'];
$title = $_POST['title'];
$m_images = $_POST['m_images'];
$game = R::load('games', $id);
$game["title"] = $title;
$game["m_images"] = $m_images;
R::store($game);
header('Location: /admin/editgame.php?id=' . $id');