mysql_query expects parameter 1 to be string

相關問題 & 資訊整理

mysql_query expects parameter 1 to be string

i keep on getting this error message.can the forum assit me pls. Warning: mysql_query() expects parameter 1 to be string, resource given in ... , 错误信息:Warning:mysql_query()expectsparameter1tobestring,resourcegiveninC:-xampp-htdocs-lmhyk-verifi., Just swap the $conn variable and the query you wrote in this line $query = mysql_query($conn,"select * from employee where ..., Try this $result = mysqli_query($con,"SELECT * FROM web_designnotes ORDER BY id DESC");., You need to swap the $con and $que paramters in your mysql_query function. http://php.net/manual/en/function.mysql-query.php.,i don't see the comment of @ThiagoUruray, if i see it before i make an answer, i will not. After i comment i re-check the warning of the question and i see @Paige, ... , You don't need the second line, the $result can be set in the first line. $query = mysql_query ("SELECT * FROM tb_funcionario WHERE username='$username' and password='$password'"); $result = mysql_query($query);

相關軟體 MySQL 資訊

MySQL
MySQL 是一個開源的 RDBMS(關係數據庫管理系統),它支持用 C,C ++,Java,Perl 和 PHP 等各種編程語言編寫的請求。由於其高速度和靈活性,MySQL 已成為主要用於開發各種形狀和大小的 Web 應用程序的最流行的數據庫系統之一。自 1995 年上市以來,這種非常受歡迎的開源數據庫管理系統已經應用於當今幾乎所有互聯網用戶的無數項目中。今天一些最受歡迎的 MySQL 用戶是 ... MySQL 軟體介紹

mysql_query expects parameter 1 to be string 相關參考資料
php - Warning: mysql_query() expects parameter ... | DaniWeb

i keep on getting this error message.can the forum assit me pls. Warning: mysql_query() expects parameter 1 to be string, resource given in ...

https://www.daniweb.com

PHP的SQL查询出现Warning: mysql_query() expects parameter 1 to be ...

错误信息:Warning:mysql_query()expectsparameter1tobestring,resourcegiveninC:-xampp-htdocs-lmhyk-verifi.

https://zhidao.baidu.com

Warning: mysql_query() expects parameter 1 to be string, resource ...

Just swap the $conn variable and the query you wrote in this line $query = mysql_query($conn,"select * from employee where ...

https://stackoverflow.com

Warning: mysql_query() expects parameter 1 to be string, object ...

Try this $result = mysqli_query($con,"SELECT * FROM web_designnotes ORDER BY id DESC");.

https://stackoverflow.com

Warning: mysql_query() expects parameter 1 to be string - Stack ...

You need to swap the $con and $que paramters in your mysql_query function. http://php.net/manual/en/function.mysql-query.php.

https://stackoverflow.com

mysql_query() expects parameter 1 to be string - Stack Overflow

i don't see the comment of @ThiagoUruray, if i see it before i make an answer, i will not. After i comment i re-check the warning of the question and i see @Paige, ...

https://stackoverflow.com

mysql_query() expects parameter 1 to be string, resource given ...

You don't need the second line, the $result can be set in the first line. $query = mysql_query ("SELECT * FROM tb_funcionario WHERE username='$username' and password='$password&#...

https://stackoverflow.com