Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how can we check in the table in comma separated values in laravel

$search = 1;
$data = DB::table("myposts")
    ->select("myposts.*")
    ->whereRaw("find_in_set('".$search."',myposts.tags)")
    ->get();
Comment

PREVIOUS NEXT
Code Example
Php :: jquery serialize php decode 
Php :: php sum of digits 
Php :: laravel natural sort 
Php :: php read text file into array 
Php :: number format without comma php 
Php :: 419 page expired laravel 
Php :: php array sum 
Php :: laravel new line in language file 
Php :: remove string after comma in php 
Php :: advanced custom forms php 
Php :: laravel retry specific failed job 
Php :: laravel form request validation unique update 
Php :: wp plugins action link 
Php :: php extend parent constructor 
Php :: php datetime add 1 weeek 
Php :: laravel collection isempty 
Php :: laravel eloquent group by week 
Php :: Date Format Conversion in controller or Blade file 
Php :: wordpress theme widgets 
Php :: php artisan serve on lumen 
Php :: laravel eloquent relationships count 
Php :: how can set defult value for yield in laravel 
Php :: php variable in echo 
Php :: laravel use variable inside callback function 
Php :: combine 2 columns search query laravel 
Php :: laravel groupby and latest 
Php :: run schedule laravel 
Php :: explode segments url php 
Php :: symfony no php binaries detected 
Php :: php check if multiple inputs are empty 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =