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 a $number1 basis, named master data, 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