Welcome Guest, Not a member yet? Register   Sign In
How can i make model query based on images
#7

(08-19-2015, 09:47 PM)Wouter60 Wrote: Use $query->num_rows() to determine how many records have been found in the database.

Did you mean put it in model like this
Code:
$query=$this->db->query("SELECT * FROM `articles` WHERE art_jenis='TREND' ORDER BY art_id DESC limit 4")->num_rows;

then how in view to use if data only 1 or 2 to make my data not redudancy, thanks wouter60 for comments
Reply


Messages In This Thread
RE: How can i make model query based on images - by freddy - 08-19-2015, 11:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB