How to remove the first word From Mysql Table? |
Hello all codeigniters,
For example A table ('Items') have a column "Coupon_codes". which contains values - Code: Start I want to delete Start and make it. Code: JkLkLKLLk65 is that possible to do this using mysql query? How can i do that?
My controllers Code:
Code: $this->Item_model->updateItemcoupon($data, $id); My Modal Code: Code: public function updateItemcoupon($data, $id)
Yoou also need to show the data array that your passing to it.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-08-2021, 02:30 AM)InsiteFX Wrote: Yoou also need to show the data array that your passing to it. Code: $data = $itemId->coupon_codes; coupon_codes Is Mysql Table which Containt Text Like This Start JkLkLKLLk65 Flashsale2021 Now i Want to Remove The First word Start From coupon_codes Table .. From Tell me How Can i do This Action??
(05-08-2021, 07:11 AM)wdeda Wrote: Below, assuming you are using CI 4, the query needed to perform the action: 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 ...
(05-08-2021, 09:29 AM)nfaiz Wrote: Like this SQL? Yes . But How Can i do This in codeigniter? Here is My code Code: public function updateItemcoupon($data, $id) What should i add ?? (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: 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; |
Welcome Guest, Not a member yet? Register Sign In |