【发布时间】:2021-10-01 21:11:11
【问题描述】:
<?php while($galleryvalidate = mysqli_fetch_array($getresultgallery)){ ?>
<div class="col-lg-2 col-md-2 mb-4 mb-lg-0" id="imageidback">
<img
data-id ="<?php echo $galleryvalidate['publishid']; ?>"
src="<?php echo $folder.$galleryvalidate['publishimage']; ?>"
class="w-100 shadow-1-strong rounded mb-4"
alt=""
style="cursor:pointer;"
name="imagequery"
/>
<input type="hidden" class="titleclass" name="titlename" id="titlenameid" value="<?php echo $galleryvalidate['title'] ?>">
<input type="hidden" class="subtitleclass" name="subtitlename" id="subtitlenameid" value="<?php echo $galleryvalidate['subtitle'] ?>">
<input type="hidden" class="descriptionclass" name="descriptionname" id="descriptionnameid" value="<?php echo $galleryvalidate['description'] ?>">
</div>
<?php } ?>
注意:图像在 php 脚本中处于循环函数中。请帮助我考虑了 3 天,但仍在寻找来源:(
【问题讨论】:
标签: javascript php jquery ajax bootstrap-4