lundi 27 janvier 2020

Insert / update implode comma separated values in laravel

                      $value4_1=implode(',',$dff_value4).',';
                      $name5_1=implode(',',$dff_name5).',';
                      $value5_1=implode(',',$dff_value5).',';
                      $number1=implode(',',$sr_number).',';

how to write an update query in laravel controller to update these values in a table on $number1 basis , named masterdata, table fields are id,value4,name5,value5_1,number.

while print_r($dff_value5_1);

it showing like below

Browsing,All,All,Browsing,313131,754745645,All,Everywhere,9846098460,Everywhere,Particular



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire