Welcome Guest, Not a member yet? Register   Sign In
Best Practices for No Results from Database Query?
#5

[eluser]kirkaracha[/eluser]
Wouldn't I still have to handle no results in the controller, then?

Code:
if($entries)
{
   // ...load your view...
} else {
// show a message saying there weren't any results
}

That's basically what I'm doing now, except I'm checking $result->num_rows() in the controller.


Messages In This Thread
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 04:02 PM
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 05:32 PM
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 05:52 PM
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 06:08 PM
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 06:16 PM
Best Practices for No Results from Database Query? - by El Forum - 02-08-2010, 06:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB