How can I display the uploaded image to the foreground?
Source: Internet
Author: User
How can I display uploaded images to the front-end my image storage path? I already have a database named PicUrl/test/uploads/1340957340.jpg. how can I display the uploaded images on the front-end? I am now like this & nbsp; $ SQL = & quot; selectProName, text, ProI how to display the uploaded graph to the foreground
My image storage path already exists
PicUrl in the database
/Test/uploads/1340957340.jpg
How can I display it on the front desk?
I am like this now
$ SQL = "select ProName, text, ProID, PicUrl from products where ProID = $ id ";
$ Query = mysql_query ($ SQL );
'?> I also think there is a mistake, but how can I change it?
------ Solution --------------------
"?>
------ Solution --------------------
Print_r ($ row); is there any data in the database?
------ Solution --------------------
"?>
# In html, you can directly:
'/>
In addition, make sure that your path is correct. check the page source code.
------ Solution --------------------
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.