__table db- prepare INSERT INTO table SET user item x2 y2 rotation __t

1
2
$__table = $db->prepare('INSERT INTO `table` SET `user` = ?, `item` = ?, `x` = ?, `y` = ?, `x2` = ?, `y2` = ?, `rotation` = ?');
$__table->execute([1,(int)$_GET['item'],(int)$_GET['x'],(int)$_GET['y'],(in_array($_GET['rotation'], [90,270]) ? ((int)$_GET['x'] + $item['height'] -1) : ((int)$_GET['x'] + $item['width'] -1)),(in_array($_GET['rotation'], [90,270]) ? ((int)$_GET['y'] + $item['width'] -11) : ((int)$_GET['y'] + $item['height'] -1)),($_GET['rotation'] ? (int)$_GET['rotation'] : 0)]);