警告:mysql_query()期望参数1是字符串,给定对象?

时间:2016-06-27 02:30:18

标签: php

错误行

  

警告:mysql_query()期望参数1为字符串,给定对象   在第70行的C:\ wamp \ www \ index.php

第70行

$result = mysql_query($con,"SELECT * FROM web_designnotes ORDER BY id DESC");

1 个答案:

答案 0 :(得分:0)

试试这个

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