-2

mysql_fetch_row() expects parameter 1 to be resource, boolean given

I have the following code:

$row = mysql_fetch_row(ji_mysql_query("SELECT FOUND_ROWS()"));
$post_count = $row[0];

What is missing here?

Rizier123
  • 57,440
  • 16
  • 89
  • 140
rajpune
  • 1
  • 2

1 Answers1

0

While mysql_query appears to be returning a boolean value, I guess that means the query failed.

http://php.net/manual/en/function.mysql-query.php example 1

that is the answer to what is causing this message, and there for is the answer to this question. There is insufficient data to give a better answer as to why the query is failing.

Always Sunny
  • 32,751
  • 7
  • 52
  • 86
Joshua Byer
  • 514
  • 4
  • 11