Welcome Guest, Not a member yet? Register   Sign In
COUNT(*) returning 0 ?
#7

[eluser]dplgngr[/eluser]
[quote author="rogierb" date="1256064181"]Loose the double quotes.

Code:
$this->db->where("`Transaction Status`='Settled Successfully' and `Settlement Amount`=9.95");
[/quote]

Code:
$this->db->select('COUNT(*) AS total_count');
$this->db->from('authorize_net');
$this->db->where('`Transaction Status`="Settled Successfully" and `Settlement Amount`=9.95');
        
$query = $this->db->get();
$result = $query->result();
        
$this->total_count_dvd = $result;

I dont see any double quotes.


Messages In This Thread
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 06:58 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:11 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:23 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:25 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:40 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:43 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 07:50 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 08:10 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 08:32 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 08:38 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 08:54 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 08:57 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:06 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:12 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:22 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:31 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:33 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 09:40 AM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 10:08 PM
COUNT(*) returning 0 ? - by El Forum - 10-20-2009, 10:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB