I was trying to use "spawn" from "child_process" to talk to the "ssh" utility (Ubuntu 20, bash 5.0, node 19.6), but got the message "Pseudo-terminal will not be allocated because stdin is not a terminal" (using "-t -t" made it bypass stdout and print directly to the terminal). In this case I can probably just use a dedicated module, but I doubt that it is the only program that is fussy about where its input is coming from and I'd like to avoid this issue in the future.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/kKRYGa3
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