Home >Backend Development >PHP Tutorial > discuz X2.5 怎么自己写个页面直接操作数据库表

discuz X2.5 怎么自己写个页面直接操作数据库表

WBOY
WBOYOriginal
2016-06-13 12:57:24786browse

discuz X2.5 如何自己写个页面直接操作数据库表?
我有个需求,需要直接执行SQL语句,该怎么写代码呢?


------解决方案--------------------
一种是你用PHP提供的mysql函数直接执行
一种是你找到定义'IN_DISCUZ'的文件,包含一下,或者你自己定义一下这个常量
Statement:
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