Welcome Guest, Not a member yet? Register   Sign In
Help on count function error
#3

Why not use this?

PHP Code:
    // -----------------------------------------------------------------------

    /**
     * get()
     *
     * @param  string $orderBy
     * @return object
     */
    
public function get($orderBy '')
    {
        
$data = [];

        
$query $this->db->order_by($orderBy)->get($this->tableName);

        if (
$query->num_rows() > 0)
        {
            
$data $query->result();
        }

        
$query->free_result();
        
        return 
$data;
    } 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Help on count function error - by mimingko - 06-14-2018, 12:29 AM
RE: Help on count function error - by hipm - 06-14-2018, 12:51 AM
RE: Help on count function error - by InsiteFX - 06-14-2018, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB