Fatal error: Call to a member function ...on string

This question already has an answer here:

  • Reference - What does this error mean in PHP? 30 answers

  • You're doing :

    $idea = mysql_real_escape_string($_POST['idea']);
    

    So $idea is a string now. Then you do :

    $check = $idea->checkIdea($title);
    

    There is no checkIdea method on strings.

    链接地址: http://www.djcxy.com/p/69400.html

    上一篇: 警告:不能修改标题信息

    下一篇: 致命错误:调用成员函数...在字符串上