News Groups Management System in PHP

Discussions happen whenever a new product is introduced into the market, when the meetings are over, when someone shares their ideas and so on. These are the various situations where the discussions happen. There are online discussions forums where you will be…
Cart Management System

Cart Management System

Nowadays most of the purchasing of the items that are needed for the daily basis can be got through the online mode. There are many shopping websites like Amazon, Flip kart, snap deal, Jabong, Shop Clues and many more. People without wasting…

Larvel – If SQL statement NULL then return Zero

Dealing with null values in Laravel database query? Larvel – If SQL statement NULL then return Zero. You can use is_null() method. $dbill=DB::table('trn_transaction')->where('trn_type','Expense')->orderBy('trn_billno', 'desc')->first(); if(is_null($dbill)) { $billno= 1; } else { $billno=$dbill->trn_billno + 1; }