arr1 = [{
id: 121212,
name: "name"
}, {
id: 121213,
name: "title"
}, {
id: 121214,
name: "adress"
}],
arr2 = [{
123456: "response",
123487: "response2",
121321: "response3"
}, {
122256: "response4",
123337: "response5",
124441: "response6"
}, {
166656: "response7",
12777: "response8",
1888321: "response9"
}]
result = [{
name: "response",
title: "response2",
adress: "response3"
},
{
name: "response4",
title: "response5",
adress: "response6"
},
{
name: "response7",
title: "response8",
adress: "response9"
}
]
Via Active questions tagged javascript - Stack Overflow https://ift.tt/HOGBID2
i'm trying to display data from the database in the admin dashboard i used this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count(); echo $users; ?> and i have successfully get the correct data from the database but what if i want to display a specific data for example in this user table there is "usertype" that specify if the user is normal user or admin i want to user the same code above but to display a specific usertype i tried this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count()->WHERE usertype =admin; echo $users; ?> but it didn't work, what am i doing wrong? source https://stackoverflow.com/questions/68199726/how-to-show-number-of-registered-users-in-laravel-based-on-usertype
Comments
Post a Comment