Retrieving images from mysql for rel usage problems

Source: Internet
Author: User
Retrieve the image from mysql to solve the rel usage problem. If the image is stored locally and used as follows, there is no problem. echo & nbsp; "& lt; a & nbsp; rel = res/test.jpg & nbsp; title = $ row [1] & nbsp ;........ if you store images in mysql in the mediablob format, and then retrieve the images from mysql for rel usage
If the image is stored locally and used as follows, there is no problem.
Echo"

If you store the image in mysql in the mediablob format and use a php file to read it, it will not work.
Echo"

Picshow_restaurant.php directly reads the image echo:
$ Row = mysql_fetch_object ($ result );
Header ("Content-type: image/JPEG", true );
Echo $ row-> picdata;

I don't know where the problem is. please ask. thank you.
------ Solution --------------------
Maybe I don't know about rel. isn't the connection using the href attribute?
What is the relationship between rel and the target?
------ Solution --------------------
1 rel = "..." with quotation marks
2. use href instead.

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.