Home > Backend Development > PHP Tutorial > php5联接mssql2005数据库表中的image字段图片显示

php5联接mssql2005数据库表中的image字段图片显示

WBOY
Release: 2016-06-13 12:37:11
Original
857 people have browsed it

php5连接mssql2005数据库表中的image字段图片显示
语言是php5
数据库是mssql2005

一个表中的字段[nr]存储图片,类型是image类型的

现在想实现
1)判断字段内容nr里的内容是图片,还是html页面,还是pdf文件

2)类型判断没有存放在别的字段中。

如果实现呢。比如nr字段里存放的内容是jpg的话,那怎么显示出来呢?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template