The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySql error?

Discussion in 'Database Discussions' started by johandre, Dec 22, 2013.

  1. johandre

    johandre Registered

    Joined:
    Dec 22, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,
    I almost dont got any kinds of skills in CPanel or how to use a mysql database.
    And I have a error on my website with the MySql base which I dont understand.
    Can anyone please tell me how to fix the error here is the website and a text of the error I am getting.

    Website: [Removed URL]
    Error
    "[23-Dec-2013 08:15:15 Europe/Moscow] PHP Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/powercra/public_html/Banned/index.php on line 286"

    I got a error log full with thoose messages spammed
     
    #1 johandre, Dec 22, 2013
    Last edited by a moderator: Dec 23, 2013
  2. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    This has nothing to do with CPanel since it is an issue with your PHP code.

    The mysql_query is returning a boolean value meaning the sql query is probably failing and you're getting a false returned rather than a mysql resource.

    Have you checked your query or run it manually?
     
  3. johandre

    johandre Registered

    Joined:
    Dec 22, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    How do I fix the issue?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This sounds like an issue with your script. Please consult with the developer of your script, or the support methods outlined by the developer for assistance with this issue.

    Thank you.
     
Loading...

Share This Page