MySQL表看起來是這樣的: 高級PHP上傳表單
下面是輸出的代碼:
<li>
<a class="thumb" href="library/<?php echo $row2['projectname']; ?>/<?php echo $row2['projectrecordnum']; ?>.<?php echo $row2['projectformat']; ?>" title="<?php echo $row2['projectrecordtitle']; ?>">
<img src="library/<?php echo $row2['projectname']; ?>/thumbs/<?php echo $row2['projectrecordnum']; ?>.<?php echo $row2['projectformat']; ?>" alt="<?php echo $row2['projectrecordtitle']; ?>" />
</a>
<div class="caption">
<div class="image-title"><?php echo $row2['projectrecordtitle']; ?></div>
<div class="image-desc"><?php echo $row2['projectrecorddesc']; ?></div>
<div class="download">
<a href="library/<?php echo $row2['projectname']; ?>/<?php echo $row2['projectrecordnum']; ?>.<?php echo $row2['projectformat']; ?>" target="_blank">Download Original</a>
</div>
</div>
</li>
下面是輸出的外觀:
<li>
<a class="thumb" href="library/ultima/2.jpg" title="Timbo DISPLACED">
<img src="library/ultima/thumbs/2.jpg" alt="Timbo DISPLACED" />
</a>
<div class="caption">
<div class="image-title">Timbo DISPLACED</div>
<div class="image-desc">Made in 3ds Max, background, color and lens flare from Photoshop</div>
<div class="download">
<a href="library/ultima/2.jpg" target="_blank">Download Original</a>
</div>
</div>
</li>
我的問題是,我無法找到一種形式,這將創建一個用戶需要的領域,然後將每個文件信息上傳並寫入一個mysql數據庫(請記住文件數量不確定)。
到底是什麼你的問題?你的'表格'看起來像什麼? – Peon 2012-07-31 14:14:30
目前它只是載有項目名稱,項目顯示名稱,項目格式,項目評論,項目信息 – 2012-07-31 14:26:01
等主要信息所以你想要一個系統,將創建一個未知數量/任意內容的表單字段設置,並處理填充那些誰知道,什麼字段到數據庫中? – 2012-07-31 14:28:29