我在php(mysql)中生成一个报告,
例如:
`select count(id) as tot_user from user_table
select count(id) as tot_cat from cat_table
select count(id) as tot_course from course_table`
Run Code Online (Sandbox Code Playgroud)
像这样我有12张桌子.
我可以在单个查询中进行.如果我做了?流程变慢了?
我在这样的数据库中存储值
www/content/lessons/40/Digital Library/document1.doc
Run Code Online (Sandbox Code Playgroud)
我需要提取文件document.doc.
如何使用正则表达式从mysql中检索此值.
我知道这个问题很愚蠢.
但根据我们的智能客户请求,我无法回答他的问题.任何一个帮助.
我们正在建立一个在线辅导网站.它包含pdf,.ppt,.doc格式文件,作为课程资料上传.他的(客户)请求是用户可以阅读所有内容但他们不得下载材料并使用它.
这就是必须在浏览器中打开所有文档.
可能吗?还有其他想法吗?