php - get() returns empty rows in Codeigniter -


I am using the function below but it did not return any rows. Tried num_rows () but it has null values ​​to me $ this-> Db- & gt; Last query was obtained using the last_query () , it was used in the database and the results are given here Is I losing a setup in Code Igniter? Waiting for your answer.

  function search ($ position = zero, $ tablename = "", $ orderby = 'id', $ order = 'dESC', $ border = 1000000, $ offset = 0) { If ($ Tablename == "") {$ tablename = $ this-> Table; } If ($ terms! = Null) $ this- & gt; Db- & gt; Where ($ statuses); If ($ orderby == "" and $ order ==! ""!) $ This-> Db- & gt; Order_by ($ orderby, $ order); $ Query = $ this- & gt; Db- & gt; Obtain ($ tablename, $ range, offset = 0); Return $ query- & gt; Result_are (); }     

after "text" itemprop = "text">

$ Position! = NULL) $ this- & gt; Db- & gt; Where ($ statuses); If ($ orderby == "" and $ order ==! ""!) $ This-> Db- & gt; Order_by ($ orderby, $ order); $ This- & gt; Db- & gt; Limit ($ border, $ offset); $ Query = $ this- & gt; Db- & gt; Get ($ tablename);

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -