dimanche 12 mars 2017

Save data with limit to 3 only?

Accessing database data and limit to 3 rows only.

I am new to laravel and i dont know how to limit access the rows.Anyone has idea how to get the result the ids 1-3 so that i will save it to my other table?

Sample range of grade to save. Only grades within this range should be save but limiting to 3 data only.

84 to 90

Scholar
id          grade
1            90
2            85
3            85
4            82
5            86
6            84
7            83
8            87
9            88
10           89


public function AddOrgaRequest(Request $request){

$test = new List;
some code   
$test->save();

return redirect()->back();
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire