PHP Code:
$engine->query("INSERT INTO `rooms_data` (`roomtype`, `caption`, `owner`, `description`, `category`, `state`, `trade_state`, `users_now`, `users_max`, `model_name`, `public_ccts`, `score`, `tags`, `icon_bg`, `icon_fg`, `icon_items`, `password`, `wallpaper`, `floor`, `landscape`, `allow_pets`, `allow_pets_eat`, `allow_walkthrough`, `hidewall`, `wallthick`, `floorthick`, `achievement`, `group_id`, `game_id`, `mute_settings`, `ban_settings`, `kick_settings`, `chat_type`, `chat_balloon`, `chat_speed`, `chat_max_distance`, `chat_flood_protection`, `walls_height`) VALUES('private', '" . $username . "' ' Room', '" . $username . "', '', 1, 'open', '0', 1, 10, 'model_b', '', 0, '', 1, 0, '', '', '105', '309', '5.7', '1', '0', '0', '0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, -1)"); $engine->query("INSERT INTO `items_rooms` (`user_id`,`base_item`, `extra_data`, `x`, `y`, `z`, `rot`, `wall_pos`, `rare_id`, `songcode`, `group_id`, `builders`) VALUES(2, 152, '', 3, 9, 0.000, 0, '', 0, '', 0, '0'),(2, 153, '0', 1, 10, 0.000, 2, '', 0, '', 0, '0'),(2, 4990, '', 1, 8, 0.000, 2, '', 0, '', 0, '0'),(2, 122, '', 9, 1, 1.000, 4, '', 0, '', 0, '0'),(2, 1650, '', 0, 0, 0.000, 0, ':w=6,0 l=8,29 r', 0, '', 0, '0'),(2, 2777, '', 9, 1, 0.000, 0, '', 0, '', 0, '0'),(2, 590, '', 6, 9, 0.000, 2, '', 0, '', 0, '0'),(2, 138, '', 5, 1, 0.000, 0, '', 0, '', 0, '0'),(2, 2769, '', 5, 3, 0.000, 2, '', 0, '', 0, '0'),(2, 2758, '', 6, 8, 0.000, 0, '', 0, '', 0, '0'),(2, 2788, '', 9, 4, 0.000, 0, '', 0, '', 0, '0'),(2, 4994, '', 1, 9, 0.000, 2, '', 0, '', 0, '0'),(2, 133, '', 6, 7, 0.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 1, 7, 0.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 1, 7, 1.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 2, 7, 0.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 2, 7, 1.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 3, 7, 1.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 3, 7, 0.000, 0, '', 0, '', 0, '0'),(2, 4385, '0', 5, 8, 0.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 5, 9, 0.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 5, 9, 1.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 5, 8, 1.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 5, 10, 1.000, 2, '', 0, '', 0, '0'),(2, 4385, '0', 5, 10, 0.000, 2, '', 0, '', 0, '0'),(2, 705, '0', 5, 4, 0.000, 2, '', 0, '', 0, '0'),(2, 3065, '', 5, 2, 0.000, 0, '', 0, '', 0, '0')");
My Question is , when the room created, it'll automaticly create id.