• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message: Undefined index: page_description

#7
[eluser]PhilTem[/eluser]
You could make that code better readable by using

Code:
return $query->num_rows() ? $query->row_array() : FALSE;

You don't need to check for empty($query) since it will always be different from NULL if your query was ran successfully (i.e. there were no MySQL-syntax errors)


Messages In This Thread
Message: Undefined index: page_description - by El Forum - 10-04-2012, 01:09 PM
Message: Undefined index: page_description - by El Forum - 10-04-2012, 01:55 PM
Message: Undefined index: page_description - by El Forum - 10-04-2012, 02:08 PM
Message: Undefined index: page_description - by El Forum - 10-04-2012, 04:52 PM
Message: Undefined index: page_description - by El Forum - 10-04-2012, 11:58 PM
Message: Undefined index: page_description - by El Forum - 10-05-2012, 05:36 AM
Message: Undefined index: page_description - by El Forum - 10-05-2012, 05:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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