Answers for "Update all column fileds"

0

Update all column fileds

$users = DB::table('mails')->distinct('mark')->count('mark');
             
             if ($users == 1){    
                 $mark = Mails::all();
                 $mark->mark = '0';
                 $mark->save();
                 
                 echo 'reset values to 0';
             }else{
                 
                 echo 'DIferent values';
             }
Posted by: Guest on June-29-2021

Code answers related to "Update all column fileds"

Browse Popular Code Answers by Language