need help |
[eluser]imn.codeartist[/eluser]
Quote:in core coading i am doing… For Delete in CI, Code: $this->db->delete(); Generates a delete SQL string and runs the query. Code: $this->db->delete('mytable', array('id' => $id)); // Produces: // DELETE FROM mytable // WHERE id = $id The first parameter is the table name, the second is the where clause. You can also use the where() or or_where() functions instead of passing the data to the second parameter of the function: Code: $this->db->where('id', $id); // Produces: // DELETE FROM mytable // WHERE id = $id An array of table names can be passed into delete() if you would like to delete data from more than 1 table. Code: $tables = array('table1', 'table2', 'table3'); Please follow this url http://ellislab.com/codeigniter/user-gui...tml#delete and at the top of the program if(isset($_REQUEST[‘todo’])) { $id = $_REQUEST[‘todo’]; mysql_query(“delete from formtable where id = ‘“.$_GET[‘REQUEST’].”’ “); header(“locationelect.php”); } but how it done in codeigniter plz help me |
Messages In This Thread |
need help - by El Forum - 10-02-2009, 10:14 PM
need help - by El Forum - 10-02-2009, 10:28 PM
need help - by El Forum - 10-02-2009, 10:33 PM
need help - by El Forum - 10-02-2009, 11:59 PM
need help - by El Forum - 10-03-2009, 12:19 AM
need help - by El Forum - 10-03-2009, 03:42 AM
|