Where and Limit in php

The WHERE Clause is used to filter only those records that are fulfilled by a specific condition given by the user. in other words, the SQL WHERE clause is used to restrict…

0 Comments

Fetch return value using ajax

A. Controller.php function fetch_bags(Request $req){ $data = DB::table('bags')->get(); $n = 1; foreach($data as $d){ return response()->json([ 'status' => 200, 'title' => $d->title, 'address' => $d->address ]); $n++; } }  …

0 Comments

Javascript foreach()

<p id="demo"></p> <script> const numbers = [65, 44, 12, 4]; numbers.forEach(myFunction) document.getElementById("demo").innerHTML = numbers; function myFunction(item, index, arr) { arr[index] = item * 10; } </script> </body>

0 Comments