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

[eluser]dplgngr[/eluser]
[quote author="rogierb" date="1256065850"]around "Settled Successfully". Mysql does not support them.[/quote]

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

Can you suggest the exact code?

I tried this one:

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;

but it returned an error:

Code:
A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Status`=`Settled Successfully` and `Settlement Amount`=9.95' at line 3

SELECT COUNT(*) AS total_count FROM (`authorize_net`) WHERE `Transaction` Status`=`Settled Successfully` and `Settlement Amount`=9.95


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