how do i fix this error?

Discussion in 'Troubleshooting' started by t4121e, Oct 27, 2011.

  1. t4121e

    t4121e New Member

    Joined:
    Oct 27, 2011
    Messages:
    3
    when i add some query i get this error

    WARNING: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in line 13 of file SmartyNoWrite.class.php(216) : eval()'d code

    how could i fix it?
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Where did you add the query? What is the query you added?
  3. t4121e

    t4121e New Member

    Joined:
    Oct 27, 2011
    Messages:
    3
    im sorry, what i mean is i was trying to get some data from mysql but i got those error
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    above message means that you have an error in your mysql query.
    use mysql_error to output error message.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    you can also post the query here and we can debug it for you.
  6. t4121e

    t4121e New Member

    Joined:
    Oct 27, 2011
    Messages:
    3
    after i put mysql_error, i got these

    Parse error: syntax error, unexpected T_STRING in /home/kankerku/public_html/member/smarty/SmartyNoWrite.class.php(216) : eval()'d code on line 13
  7. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    sorry, but without some specifics of what you are doing it is really difficult to assist you.

    1. sounds like you are writing some PHP code? Are you writing a plugin? Are you modifying existing core code (if so, what code are you modifying and what is the EXACT modification you are making.

    2. What is the exact SQL query that you are trying to run. Post your code here.

Share This Page