mardi 3 janvier 2017

Find inside comma separated values field Laravel 5.1

need to check if a variable is present inside a comma separated string in mysql field using querybuilder. I do this

                          <?php $parents = DB::table('categorie')->whereRaw('FIND_IN_SET("$categoria->id", parent)')->get();                            ?>

but didn't return any value... Any idea?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire