文章詳情頁
php代碼運(yùn)行報(bào)錯(cuò)
瀏覽:217日期:2022-06-03 09:36:01
問題描述
Warning: mysqli_query() expects at least 2 parameters, 1 given in D:phpstudy_proWWWallusers.php on line 31Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in D:phpstudy_proWWWallusers.php on line 33
下面是代碼
//查詢數(shù)據(jù)表中的所有數(shù)據(jù)
$result=mysqli_query("SELECT * FROM users BY id DESC");
//獲取數(shù)據(jù)表的數(shù)據(jù)條數(shù)
$dataCount=mysqli_num_rows($result);
//echo $dataCount;
//打印輸出所有數(shù)據(jù)
問題解答
回答1:mysqli_query()接收兩個(gè)參數(shù),第一個(gè)參數(shù)是MySQL 連接
上一條:中文phpword文檔下一條:您的function文件哪里有啊。
相關(guān)文章:
1. javascript - sublime快鍵鍵問題2. javascript - immutable配合react提升性能?3. Apache 已經(jīng)把網(wǎng)站根目錄的改為allow from all了,但是服務(wù)器還是不能訪問?4. css - 寫頁面遇到個(gè)布局問題,求大佬們幫解答,在線等,急!~5. javascript - 移動(dòng)端上不能實(shí)現(xiàn)拖拽布局嗎?6. phpstudy8.1支持win11系統(tǒng)嗎?7. 實(shí)現(xiàn)bing搜索工具urlAPI提交8. 配置Apache時(shí),添加對(duì)PHP的支持時(shí)語法錯(cuò)誤9. javascript - nodejs關(guān)于進(jìn)程間發(fā)送句柄的一點(diǎn)疑問10. vue.js - Vue 如何像Angular.js watch 一樣監(jiān)聽數(shù)據(jù)變化
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備