Location: PHPKode > scripts > Mod's Image Uploader > mods-image-uploader/upload.php
<html>
<body>
<form enctype="multipart/form-data" action="searchp.php" method="post">
Keyword: <input type="text" name="search"> <br>
<input type="submit" value="Search">
</form>
<br>
<br>
<table>
<td width="33%"></td>
<td width="33%">
Accepted upload formats: .GIF, .JPEG, .PNG <br>
Maximum File Size: 1 Mb <br>
<form enctype="multipart/form-data" action="uploadp.php" method="post">
File: <input type="file" name="file"> <br>
Keywords: <input type="text" name="keywords"> <br>
<input type="submit" value="Upload">
</td>
<td width="33%"></td>
</form>
</table>
</body>
</html>

<?
echo "<center>";
echo "10 Most Recent Uploads:<br>";
@include ("config.php") ;
$x = 0;
$con = mysql_connect($host,$user,$pass);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db($db, $con);
$result = mysql_query("SELECT link FROM images order by time desc");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$y = $x;
	if ($y == 1)
	{
		echo "<tr>";
	}
	if ($y == 5)
	{
		echo "<br><br></tr>";
	}
	if ($y == 10)
	{
		break;
	}
	$x++;

echo "<a href='$row[0]'><img width='100' height='100' src='" . $row[0] . "'></a>&nbsp";

     }
mysql_close($con);
echo "</center>";
?>

<html>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<center>
<font size="1">Copyright © 2008 MOD_CHAMPION & New Earth Programming Team</font>
</center>
</html>

Return current item: Mod's Image Uploader