Can this be altered to allow for multiple image uploads?
<?
if($submitted) {
require("config.inc");
$data = addslashes(fread(fopen($src, "r"), filesize($src)));
$strDescription = addslashes(nl2br($des));
$sql = "INSERT INTO images
(alttext, src, des, filename, filesize, filetype)
VALUES
(\"$alttext\", \"$data\", \"$strDescription\", \"$src_name\", \"$src_size\", \"$src_type\")
";
$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");
$msg = "Thank You $u, the following infromation has been added to the database <br>";
$sql = "SELECT id, alttext FROM images WHERE filename=\"$src_name\"";
$result = @mysql_query($sql,$connection) or die("Couldn't execute query. Load");
while ($row = mysql_fetch_array($result)) {
$id = $row['id'];
$alttext = $row['alttext'];
}
$link = "The html src to this image is <br> img border=\"0\" src=\"image.php?id=$id\" alt=\"$alttext\" <br> <img border=\"0\" src=\"image.php?id=$id\" alt=\"$alttext\">";
echo $msg;
echo $link;
exit;
}
?>