mysqli num rows blows up the script |
What is wrong with the below code. It fails on the num_rows, but gives no error message.. it just doesn't go beyond that point. This isn't actually codeignitor code, it's just straight PHP.
Code: if($q = $mysqli->query($sql)) {
mysqli_result::$num_rows is a property, not a method.
You've used it correctly on the second line (but commented it out). |
Welcome Guest, Not a member yet? Register Sign In |