$sql = "SELECT country FROM {$countriestable} ORDER BY COUNTRY ASC"; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { $row_country = $row['country']; if ($row_country == $nationality) { $selected = "selected='selected'"; } else { $selected = ""; } echo "<option {$selected}>{$row_country}</option>"; } ?> </select><span style="vertical-align:middle"> Game </span> <?php echo getSelectboxForAllVersionsInput($selectversion, 'selectversion'); ?> <input title="find players" type="Submit" class="width100" name="submit" value="find" /> </form> </td> </tr> <?php $sql = "SELECT * FROM {$playerstable} {$whereclause} ORDER BY {$sortby} LIMIT 0,200"; $result = mysql_query($sql); $yo = mysql_num_rows($result); if ($yo == 0) { echo "<tr><td><p>No matches found.</p></td></tr></table>"; } else { ?>
?> " /></td> <td>Host <span class="grey-small" style="cursor:help;" title="values: B (PES5), W (winner host), L (loser host), A (aggregate game)">(?)</span></td> <td> <input name="host" type="Text" size="1" value="<?php echo $host; ?> " /> </td> </tr> <tr> <td>Game version </td> <td> <?php echo getSelectboxForAllVersionsInput($version, 'version'); ?> <input type="hidden" name="oldversion" value="<?php echo $version; ?> " /> <input type="hidden" name="oldwinnerteam" value="<?php echo $winnerteam; ?> " /> <input type="hidden" name="oldloserteam" value="<?php echo $loserteam; ?> " /> <input type="hidden" name="draw" value="<?php echo $draw;
function getSelectboxForAllVersions($setDefault) { return getSelectboxForAllVersionsInput($setDefault, 'defaultversion'); }