Welcome Guest, Not a member yet? Register   Sign In
How to do this query?
#2

[eluser]xwero[/eluser]
The most user friendly option would be that the cause select/radio button checks if the user still can donate or not. So in an ajax controller you can put this code
Code:
echo ($this->db->query('select count(*) as rows from table where donation = ?',array($input))->row()->rows < 5)?'they have enough money already':'You can give a little more';


Messages In This Thread
How to do this query? - by El Forum - 04-03-2009, 04:15 AM
How to do this query? - by El Forum - 04-03-2009, 04:34 AM
How to do this query? - by El Forum - 04-03-2009, 06:25 AM
How to do this query? - by El Forum - 04-03-2009, 06:44 AM
How to do this query? - by El Forum - 04-26-2009, 08:17 AM
How to do this query? - by El Forum - 04-26-2009, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB