<?php
require __DIR__ . '../../digits.php';
?>

<form method="post" action="spaceship/updatecommon.php">
	<?php
	include 'krypton.php';
	$userid = mysqli_real_escape_string($krypton, $_POST['userid']);
	$username = mysqli_real_escape_string($krypton, $_POST['user']);
	$selectdatasss = "SELECT * FROM `justicewonder` WHERE id='" . $userid . "' ";
	$condataper = mysqli_query($krypton, $selectdatasss);

	if (mysqli_num_rows($condataper) == 0) {
		echo "<h1 class='text-danger'><i class='icon-warning-sign'></i>Tidak ada Periode</h1>";
	} else {
		while ($marketrow = mysqli_fetch_assoc($condataper)) {
			$prize1 = $marketrow['prize1'];
			$prize2 = $marketrow['prize2'];
			$prize3 = $marketrow['prize3'];

	?>
			<input type="hidden" name="usesid" value="<?php echo $marketrow['id']; ?>" />
			<input type="hidden" name="usernames" value="<?php echo $username; ?>" />
			<div class="labels">
				<label>Prize 1 </label><input name="updateprize1" class="inputprize" maxlength="<?php echo $number ?>" value="<?php echo $prize1; ?>" />
				<label>Prize 2 </label> <input name="updateprize2" class="inputprize" maxlength="<?php echo $number ?>" value="<?php echo $prize2; ?>" />
				<label>Prize 3 </label> <input name="updateprize3" class="inputprize" maxlength="<?php echo $number ?>" value="<?php echo $prize3; ?>" />
			</div>
			<button type="submit" name="updateprize" class="btn btn-primary updateprize">Simpan Nomor</button>




	<?php
		}
	}

	?>
</form>