Welcome Guest, Not a member yet? Register   Sign In
How to remove the first word From Mysql Table?
#10

(05-08-2021, 09:28 AM)litecoin90 Wrote:
(05-08-2021, 07:11 AM)wdeda Wrote: Below, assuming you are using CI 4, the query needed to perform the action:
PHP Code:
$db $this->db;
$id '1';
$query $db->table('items')
->
select('Coupon_codes')
->
where('id'$id)
->
delete(); 


Hi, Can You tell me How to remove the first word From Mysql Table?
I Want To Update My Mysql Table and Want to remove The first word From My Mysql Table.. Table Contact Text ...

In the same way used in the example for the "items" table.
PHP Code:
$query $db->table('items'// in this line the table is informed, in this example, items;
->select('Coupon_codes'// here the row where the text to be deleted is located, in this example, Coupon_codes. 
Reply


Messages In This Thread
RE: How to remove the first word From Mysql Table? - by wdeda - 05-08-2021, 10:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB