MySQL 表如下所示:
这是输出的代码:
<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 数据库(请记住,文件的数量是不确定的)。