SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | $query = "SELECT * FROM `Minecraft_Versions` ORDER BY `Minecraft_Versions`.`ReleaseDate` DESC "; | |
| 3 | $result = mysql_query($query) or die(mysql_error()); | |
| 4 | ?> | |
| 5 | ||
| 6 | <html> | |
| 7 | <head> | |
| 8 | <title>Upload</title> | |
| 9 | </head> | |
| 10 | <body> | |
| 11 | <h1>Upload1</h1> | |
| 12 | <form enctype="multipart/form-data" action="upload.php" method="post"> | |
| 13 | <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> | |
| 14 | File: <input name="userfile" type="file"> | |
| 15 | Name of invention: <input name="Name" type="text"> | |
| 16 | Uploader name:<input name="Uploader_name" type="text"> | |
| 17 | Invented by:<input name="Inventor_name" type="text"> | |
| 18 | Inventor Proof(Forum or youtube link etc.)<input name="Proof" type="text"> | |
| 19 | Keywords:<input name="Tags" type="text"> | |
| 20 | Main Screenshot Link:<input name="Screenshot1" type="text"> | |
| 21 | Screenshot 2:<input name="Screenshot2" type="text"> | |
| 22 | Screenshot 3:<input name="Screenshot3" type="text"> | |
| 23 | ||
| 24 | Newest known working version: | |
| 25 | <?php | |
| 26 | $dropdown = "<select name='versions'>"; | |
| 27 | while($row = mysql_fetch_assoc($result)) {
| |
| 28 | $dropdown .= "\r\n<option value='{$row['VersionNumber']}'>{$row['VersionNumber']}</option>";
| |
| 29 | } | |
| 30 | $dropdown .= "\r\n</select>"; | |
| 31 | echo $dropdown; | |
| 32 | ?> | |
| 33 | ||
| 34 | ||
| 35 | <input type="submit" value="Upload"> | |
| 36 | ||
| 37 | </form> | |
| 38 | </body> | |
| 39 | </html> |