Welcome Guest, Not a member yet? Register   Sign In
what is the results from $this->db->delete()
#1

[eluser]dcbartlett[/eluser]
Hellow,

I'm trying to find what the default results from $this->db->delete() are.

$this->db->delete() returns bool(true), however, i do now know what else it will return.

i'm trying to achieve the ability to tell a user that a record does not exist when they try to delete it.

if ($this->db->delete($table)) {
return 1;
} else {
return 0;
}

i have another function that looks for 1 and says record deleted, if it gets 0, it tells the user that record can not be deleted.

Any help is appreciated.


Messages In This Thread
what is the results from $this->db->delete() - by El Forum - 11-29-2009, 04:59 PM
what is the results from $this->db->delete() - by El Forum - 11-29-2009, 06:46 PM
what is the results from $this->db->delete() - by El Forum - 11-29-2009, 07:18 PM
what is the results from $this->db->delete() - by El Forum - 11-29-2009, 07:27 PM
what is the results from $this->db->delete() - by El Forum - 11-30-2009, 01:11 AM
what is the results from $this->db->delete() - by El Forum - 11-30-2009, 01:27 AM
what is the results from $this->db->delete() - by El Forum - 11-30-2009, 05:52 AM
what is the results from $this->db->delete() - by El Forum - 11-30-2009, 11:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB