Welcome Guest, Not a member yet? Register   Sign In
please help me :D
#1

[eluser]Unknown[/eluser]
example i have table with field "id(int), firsh_name(varchar), last_name(varchar)"
how i can make webservic, for :
1. select
2. insert
3. update
4. delete
please help me.
how to do model
and i hope anyone can use too
#2

[eluser]Michael;[/eluser]
What exactly are you asking? how to do a model, or just the queries themselves?
#3

[eluser]Isern Palaus[/eluser]
Code:
// Get content (by ID)
$this->db->where("id",$id);
$this->db->get("tablename");

// Get ALL the content
$this->db->get("tablename");

// Inser Content
$this->db->insert("tablename");

// Update Content (by ID)
$this->db->where("id",$id);
$this->db->update("tablename");

// Delete Content (by ID)
$this->db->where("id",$id);
$this->db->delete("tablename");

Regards,
-- Isern Palaus




Theme © iAndrew 2016 - Forum software by © MyBB