• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to use IS NULL?

#3
Not related to the answer but this code

PHP Code:
if ($this->db->trans_status() === TRUE)
 
   {
 
     return true;
 
   }
 
   else
    
{
 
     return false;
 
   

Can be expressed with a lot less typing Rolleyes

PHP Code:
return $this->db->trans_status(); 
Reply


Messages In This Thread
how to use IS NULL? - by falcon812311 - 04-08-2017, 09:37 PM
RE: how to use IS NULL? - by janudewangga - 04-09-2017, 01:14 AM
RE: how to use IS NULL? - by dave friend - 04-09-2017, 11:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.