function edit_view() { global $wpdb; $table1 = $wpdb->prefix . 'iggamelist'; if (!empty($_REQUEST['edit_id'])) { $hidden_edit_id = $_REQUEST['edit_id']; $edit_rec = $wpdb->get_results("SELECT * FROM {$table1} where id='" . $_REQUEST['edit_id'] . "'"); } $exp_urlkey = $edit_rec[0]->urlkey; ?> <?php if (isset($_POST['comp-update'])) { ?> <div class="updated"><p><?php echo "Comp Updated"; ?> </p></div> <?php } ?> <form name="teamfrm" action="options-general.php?page=igamezone.php&link=viewcomp" method="post" enctype="multipart/form-data"> <p><label>Game</label> <select name="gamedrop"> <?php select_game(); ?> </select> </p> <p><label>Tournament</label> <select name="tourdrop"> <?php select_tour(); ?> </select> </p> <p><label>Teams</label> <select name="tourdrop1"> <?php select_team('team1'); ?> </select> <select name="tourdrop2"> <?php select_team('team2'); ?> </select> </p> <p><label>Match Time</label> <div class="combine_div"> <span class="date_drop"><small>Date</small><?php date_list(); ?> </span> <span class="time_drop"><small>Time</small><?php time_list(); ?> </span> <span class="time_zone_drop"><small>Timezone</small><?php timezone_drop(); ?> </span> </div> </p> <p><label>Match Duration</label> <span class="match_duration"><?php game_duration(); ?> </div> </p> <p><label>URL Link</label> <input type="text" name="url_key" id="url" value="<?php echo $exp_urlkey; ?> "> </p> <p><input type="hidden" name="hd_edit_id" value="<?php echo $hidden_edit_id; ?> " id="sub"></p> <p><input type="submit" name="comp-update" value="Update" id="sub"></p> </form> <?php }
echo $_SERVER['REQUEST_URI']; ?> " method="post" enctype="multipart/form-data"> <p><label>Game</label> <select name="gamedrop"> <?php select_game(); ?> </select> </p> <p><label>Tournament</label> <select name="tourdrop"> <?php select_tour(); ?> </select> </p> <p><label>Teams</label> <select name="tourdrop1"> <?php select_team('team1'); ?> </select> <select name="tourdrop2"> <?php select_team('team2'); ?> </select>