Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经编写了一个用于浏览文件图像的代码,并使用 php 将其上传到指定的文件夹中。现在我想要一个 mysql 数据库,在其中创建两个字段名称 id 和 name,我可以将浏览文件名存储到数据库中。然后我想使用 id 从文件夹中获取图像。
请编写代码以将图像从 id 提取到特定文件夹中。
作为该问题的解决方案,您需要为图像文件夹指定固定路径并在数据库中定义一个字段用于存储图像的文件名。
然后,您可以使用为图像文件夹定义的路径以及从数据库中检索图像的文件名来获取图像。
例如
<img src="<?php echo $Path.'/'.$record['image_filename'];?>">
$('.sign_in').closest('#page_canvas').css('marginTop','54px');
This line keeps throwing the error:
Uncaught TypeError: Object #<Object> has no m