dongtui0650 2015-02-27 23:59
浏览 19

PHP,OOP,属性[关闭]

Could someone help me make query using php oop, here is what I trying but not work:

$this -> hashs = DB::select('SELECT * FROM'. $this -> table .'WHERE'. $this-> colRep .'IS NULL &&'. $this -> colCol .'= ?', array($this -> commentHASH));

If I use normal variable work fine....

  • 写回答

2条回答 默认 最新

  • dqqn32019 2015-02-28 00:02
    关注

    In php . doesn't put a space between the elements you're concatenating. That'd be a start.

    评论

报告相同问题?