udelas si tabulky s patricnyma sloupcema, ze, a pak na sajtu si das nekam edit na soubory. nekde na servru adresar s pravama zapisu a do obsluhy pak muzes dat neco takovehleho. je to jen ilustrativni
v html takto ten edit. jeste form si pridas
Kód:
<form method='post' action='neco.php' enctype='multipart/form-data'>
<input type='submit' value='Add Image' class='forms' name='post_dataform'>
a do toho neco .php das tohle, z toho sql dotazu je jasne jak bude vypadat ta tabulka. treba takto

Kód:
CREATE TABLE `images` &#40;
  `ID_image` int&#40;10&#41; unsigned NOT NULL auto_increment,
  `ID_section` smallint&#40;6&#41; unsigned NOT NULL default '0',
  `ID_post` int&#40;10&#41; unsigned NOT NULL default '0',
  `F_name` varchar&#40;100&#41; NOT NULL default '',
  `F_ext` varchar&#40;100&#41; NOT NULL default '',
  `F_size` mediumint&#40;8&#41; unsigned NOT NULL default '0',
  `D_owner` varchar&#40;30&#41; NOT NULL default '',
  PRIMARY KEY  &#40;`ID_image`&#41;
&#41; TYPE=MyISAM AUTO_INCREMENT=0 ;
Kód:
		If&#40;&#40;$add_image_name != ""&#41; && &#40;$add_image_type != "image"&#41; &#41; &#123;
			//if &#40;!file_exists&#40;"./postdata/$ID_section"&#41;&#41; mkdir&#40;"./postdata/$ID_section", 0777&#41;;
			//if &#40;!file_exists&#40;"./postdata/$ID_section/$ID_post"&#41;&#41; mkdir&#40;"./postdata/$ID_section/$ID_post", 0777&#41;;

			@copy&#40;"$add_image", "./postdata/&#91;$ID_section&#93;&#91;$ID_post&#93;-$add_image_name"&#41;
				or die&#40;"No copy!"&#41;;

			if &#40;file_exists&#40;"./postdata/&#91;$ID_section&#93;&#91;$ID_post&#93;-$add_image_name"&#41;&#41; &#123;
				mysql_query&#40;"INSERT INTO `images` &#40;`ID_section`, `ID_post`, `F_name`, `F_size`, `F_ext`, `D_owner`&#41; VALUES &#40;
					'$ID_section',
					'$ID_post',
					'&#91;$ID_section&#93;&#91;$ID_post&#93;-$add_image_name',
					'$add_image_size',
					'$add_image_type',
					'$D_owner'
					&#41;", $connection&#41; or die&#40;"Can't Perform Query"&#41;;
			&#125;
		&#125;