douwu0335 2013-12-08 23:15
浏览 11
已采纳

为什么这个简单的查询不起作用?

I have this query, and I can't find anything wrong with it, yet it prints out the die() text when it runs...

$result = mysql_query($cxn, "SELECT * FROM news_table") or die("Query not working.");
  • 写回答

2条回答 默认 最新

  • dsxmwin86342 2013-12-08 23:30
    关注

    My guess is that you're mixing MySQL_ with MySQLi_ from what I seen in your questions, where you're using MySQLi_ functions

    One of your other questions:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?