Student Project Guide

We are freelance developers who develop vb.net, asp.net, android, php, c#.NET, java,etc student projects. All the student project we uploaded in this website is 100% working project. For student projects contact us at studentprojectguide.com@gmail.com

Wednesday, November 6, 2019

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.

if(is_null($dbill))
{
$billno= 1;
}
else
{
$billno=$dbill->trn_billno + 1;
}

Posted by Unknown at 2:30 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2019 (138)
    • ▼  November (1)
      • Larvel - If SQL statement NULL then return Zero
    • ►  July (10)
    • ►  June (21)
    • ►  May (21)
    • ►  April (22)
    • ►  March (21)
    • ►  February (20)
    • ►  January (22)
  • ►  2018 (115)
    • ►  December (23)
    • ►  November (21)
    • ►  October (23)
    • ►  September (4)
    • ►  August (12)
    • ►  July (23)
    • ►  June (9)
Simple theme. Powered by Blogger.