Questions about getting data from MYSQL on the front-end-php Tutorial

Source: Internet
Author: User
If you want to upload images to the server due to a problem that occurs on the front-end when retrieving data from MYSQL, you can use the MYSQL address to store 1000 images and randomly find several images displayed on the front-end. I cannot write it myself. what's the idea? I also know what keywords I want to search online. what can I do with my help? Data mysql: a problem that is displayed on the front-end when retrieving data from MYSQL
If you want to upload images to the server, you can use the MYSQL address to store them. There are 1000 images randomly displayed at the front-end.
I cannot write it myself. what's the idea? I also know what keywords I want to search online. what can I do with my help?

Data mysql server image

Share:


------ Solution --------------------
1. you should upload images first! Don't look at this screen tutorial (http://www.php100.com/html/shipinjiaocheng/PHP100shipinjiaocheng/2009/0416/808.htm)
2. the image address is imported into the database and will not go to the tutorial the same way.
3. randomly fetch a few images, such as 12 images, which can be written in SQL:
Select * from 'table' order by rand () limit 12

------ Solution --------------------
Php file Upload
Http://www.w3school.com.cn/php/php_file_upload.asp
------ Solution --------------------
Mysql Query statements are http://www.3lian.com/edu/2013/03-01/58619.html that support random queries

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.