图片上传帮助

发布于 2024-08-09 20:32:19 字数 100 浏览 3 评论 0原文

我需要用 PHP 进行编码,只有注册用户可以上传任意数量的图像,并可以选择删除它们。他们的一张图像位于他们的个人资料中,靠近他/她的详细信息。

我想将图像存储在服务器中。

i need coding in PHP where only registered users can upload as many images as they want with the option of deleting them .One of their image goes in their profile next to his/her details.

i want to store the images in server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甩你一脸翔 2024-08-16 20:32:19

您可以:

1) 将图像存储在文件夹中并将位置存储在数据库中

http://php.net/manual/en/features.file-upload.php

2) 将图像直接泵入数据库(然后调用一个 php 文件来获取它)并根据 id 显示)

http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx

You can either:

1) Store the image in a folder and store the location in the database

http://php.net/manual/en/features.file-upload.php

or

2) Pump the image straight into your database (then call a php file that gets it out and displays it based on the id)

http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文