2016.6.21 PHP and mqsql Interactive image reading

Source: Internet
Author: User

<TD width= "265" >
<?php
mysql_select_db ("member");
mysql_query ("Set character set UTF8");
mysql_query ("Set name UTF8");
$result =mysql_query ("select * from ' purchasemessages ' where pur_tuijian=1 order by pur_id desc limit 0,1");
$info =mysql_fetch_array ($result);
if ($info ==false) {
echo "This site is no product!" ";
}
else{
?>
<table width= "border=" 0 "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
&LT;TD width= "rowspan=" 5 "><div align=" center ">
<?php if (Trim ($info [pur_pic]== "")){
echo "No picture";
}
else{
?>
"width=" height= "border=" 0 ">//mysql read the relative path of the picture, this relative path is stored in the field Pur_pic (.. \images\08.jpg)
<?php
}
?>
</div>
</td>

2016.6.21 PHP and mqsql Interactive image reading

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.