php - Codeigniter DB where clause syntax error -


Consider this function to get data from DB in Codeigniter:

  function Popular_list ($ range = 2) {$ this- & gt; Db- & gt; Select ('News. *'); $ This- & gt; Db- & gt; Where ('id', $ this-> uri-> section (3)); $ This- & gt; Db- & gt; Where ('Publish', 1); $ This- & gt; Db- & gt; Where ('seen', (> = 5); $ This- & gt; Db- & gt; Order_by ('id', 'desc'); $ This- & gt; Db- & gt; Boundary ($ border); $ Query = $ this- & gt; Db- & gt; Receive ('news'); Return $ query- & gt; result (); }  

I am getting this parse error:

  Parse error: Parse error in C: \ xampp \ htdocs \ misnews \ application \ model \ home_model Line 113 on line 113 is FPP 113: $ this-> Db- & gt; Where ('seen', (> = 5);  

What am I doing wrong?

To change your position below:

  $ this- & Gt; Db- & gt; Where ('see' = ', 5);  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -