Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $recentcheck=DB::table('recent_convert')->get();
  2. $rowcount = $recentcheck->count();
  3.  
  4. if($rowcount<10){
  5. DB::table('recent_convert')->insert(['currency_currency' => $convertion, 'amount'=> $amountval]);
  6.  
  7. }else{
  8. DB::select( DB::raw("DELETE FROM recent_convert LIMIT 1") );
  9. DB::table('recent_convert')->insert(['currency_currency' => $convertion, 'amount'=> $amountval]);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement