当前位置:网站首页>关于PHP-数据库的 数据读取,Trying to get property 'num_rows' of non-object?
关于PHP-数据库的 数据读取,Trying to get property 'num_rows' of non-object?
2022-07-02 21:34:00 【CSDN问答】
//最新留言展示前面
$sql = "SELECT * FROM 'liuyan1' ORDER BY 'liuyan1'.'id' DESC";
$result = $conn->query($sql);
if($result->num_rows > 0){ //输出数据 while($row = $result->fetch_assoc()){ ?>
请问显示:Notice: Trying to get property 'num_rows' of non-object in 是为什么啊
边栏推荐
- The source code of the daily book analyzes the design idea of Flink and solves the problems in Flink
- Construction and maintenance of business website [5]
- [Jianzhi offer] 57 And are two numbers of S
- Une semaine de vie
- 基本IO接口技术——微机第七章笔记
- China's Micro SD market trend report, technology dynamic innovation and market forecast
- Construction and maintenance of business websites [4]
- Jar package startup failed -mysql modify the default port number / set password free enter
- 关于测试用例
- Etcd raft protocol
猜你喜欢
图像基础概念与YUV/RGB深入理解
Oriental Aesthetics and software design
Riding the wind of "cloud native" and stepping on the wave of "digitalization", new programmer 003 starts pre-sale
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
[shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
《Just because》阅读感受
[shutter] statefulwidget component (pageview component)
MySQL learning record (7)
Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
随机推荐
MySQL learning record (6)
Research Report on market supply and demand and strategy of Chinese garden equipment industry
Redis distributed lock failure, I can't help but want to burst
Off chip ADC commissioning record
情感计算与理解研究发展概述
Pyqt picture decodes and encodes and loads pictures
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
MySQL learning record (9)
[shutter] shutter layout component (wrap component | expanded component)
Blue Bridge Cup Winter vacation homework (DFS backtracking + pruning)
A specially designed loss is used to deal with data sets with unbalanced categories
:last-child 不生效解决
Construction and maintenance of business websites [9]
How to write a good program when a big book speaks every day?
Gbase8s database type
【剑指 Offer】57. 和为s的两个数字
Etcd raft protocol
Construction and maintenance of business websites [8]
Gee: (II) resampling the image
It is said that this year gold three silver four has become gold one silver two..