boolean given error help plz expert bros.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    boolean given error help plz expert bros.

    after i install a full mod engeen i getting that error
    HTML Code:
    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adminzon/public_html/incfiles/func_quick.php on line 4
    line 4 is
    HTML Code:
    while ($res = mysql_fetch_array($roq))

    and
    Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/adminzon/public_html/users/qchat.php on line 185
    qchat.php

    line 185 code is Code:
    HTML Code:
    $req = mysql_query("SELECT COUNT(*) FROM `qchat`");
    $colmes = mysql_result($req, 0);
    plz help me here error *****
    Last edited by arnage; 22.03.13, 13:09.

    #2
    Follow these steps to solve it: http://coding-talk.com/f19/solving-p...n-given-22934/
    This is for mysqli but php principle is the same.
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #3
      unable to fix , plz help detail and plz fix my php line plz

      Comment


        #4
        But it is in detail, just add mysql_query()'s in if() and define those vars. And if you can't do that add
        error_reporting(0);
        at the top of page.
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment


          #5
          Turning error reporting off doesn't fix your error. It hides it. The error will still persist and will conntinue to make ur app misbehave

          Comment

          Working...
          X