|
184 | 184 | $level = ltrim($key, 'egg_'); |
185 | 185 | $gym_id = ($_POST['gym_id'] != 'ALL') ? $_POST['gym_id'] : NULL; |
186 | 186 |
|
187 | | - $stmt = $conn->prepare("INSERT INTO egg ( id, ping, clean, template, distance, team, level, profile_no, gym_id) |
188 | | - VALUES ( ?, ?, ? , ?, ?, 4, ?, ?, ?)"); |
| 187 | + $stmt = $conn->prepare("INSERT INTO egg ( id, ping, clean, template, distance, team, level, profile_no, gym_id, rsvp_changes) |
| 188 | + VALUES ( ?, ?, ?, ?, ?, 4, ?, ?, ?, ?)"); |
189 | 189 | if (false === $stmt) { |
190 | 190 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=AE1&sql=$stmt->error"); |
191 | 191 | exit(); |
192 | | - } |
193 | | - $rs = $stmt->bind_param("ssisiiis", $_SESSION['id'], $_POST['content'], $clean, $template, $_POST['distance'], $level, $_SESSION['profile'], $gym_id); |
| 192 | + } |
| 193 | + |
| 194 | + $rs = $stmt->bind_param("ssisiiisi", $_SESSION['id'], $_POST['content'], $clean, $template, $_POST['distance'], $level, $_SESSION['profile'], $gym_id, $_POST['rsvp']); |
194 | 195 | if (false === $rs) { |
195 | 196 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=AE2&sql=$stmt->error"); |
196 | 197 | exit(); |
|
213 | 214 | $level = ltrim($key, 'raid_'); |
214 | 215 | $gym_id = ($_POST['gym_id'] != 'ALL') ? $_POST['gym_id'] : NULL; |
215 | 216 |
|
216 | | - $stmt = $conn->prepare("INSERT INTO raid ( id, ping, clean, template, pokemon_id, distance, team, level, form, profile_no, gym_id) |
217 | | - VALUES ( ?, ?, ? , ?, 9000, ?, 4, ?, 0, ?, ?)"); |
| 217 | + $stmt = $conn->prepare("INSERT INTO raid ( id, ping, clean, template, pokemon_id, distance, team, level, form, profile_no, gym_id, rsvp_changes) |
| 218 | + VALUES ( ?, ?, ? , ?, 9000, ?, 4, ?, 0, ?, ?, ?)"); |
218 | 219 | if (false === $stmt) { |
219 | 220 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=AR1&sql=$stmt->error"); |
220 | 221 | exit(); |
221 | 222 | } |
222 | | - $rs = $stmt->bind_param("ssisiiis", $_SESSION['id'], $_POST['content'], $clean, $template, $_POST['distance'], $level, $_SESSION['profile'], $gym_id); |
| 223 | + $rs = $stmt->bind_param("ssisiiisi", $_SESSION['id'], $_POST['content'], $clean, $template, $_POST['distance'], $level, $_SESSION['profile'], $gym_id, $_POST['rsvp']); |
223 | 224 | if (false === $rs) { |
224 | 225 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=AR2&sql=$stmt->error"); |
225 | 226 | exit(); |
|
245 | 246 | if (isset($arr[3])) { $boss_mega = $arr[3];} |
246 | 247 | $gym_id = ($_POST['gym_id'] != 'ALL') ? $_POST['gym_id'] : NULL; |
247 | 248 |
|
248 | | - $stmt = $conn->prepare("INSERT INTO raid ( id, ping, clean, template, pokemon_id, distance, team, level, form, profile_no, gym_id) |
249 | | - VALUES ( ?, '', ? , ?, ? , ?, 4, 9000, ?, ?, ?)"); |
| 249 | + $stmt = $conn->prepare("INSERT INTO raid ( id, ping, clean, template, pokemon_id, distance, team, level, form, profile_no, gym_id, rsvp_changes) |
| 250 | + VALUES ( ?, '', ? , ?, ? , ?, 4, 9000, ?, ?, ?, ?)"); |
250 | 251 | if (false === $stmt) { |
251 | 252 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=ARM1&sql=$stmt->error"); |
252 | 253 | exit(); |
253 | 254 | } |
254 | | - $rs = $stmt->bind_param("sisiiiis", $_SESSION['id'], $clean, $template, $boss_id, $_POST['distance'], $boss_form, $_SESSION['profile'], $gym_id); |
| 255 | + $rs = $stmt->bind_param("sisiiiisi", $_SESSION['id'], $clean, $template, $boss_id, $_POST['distance'], $boss_form, $_SESSION['profile'], $gym_id, $_POST['rsvp']); |
255 | 256 | if (false === $rs) { |
256 | 257 | header("Location: $redirect_url?type=display&page=raid&return=sql_error&phase=ARM2&sql=$stmt->error"); |
257 | 258 | exit(); |
|
0 commit comments