For the life of me I can't figure why my prepared statement isn't working on my LAMP server given that it works fine on WAMP. Can anyone figure this out? Anything wrong with the statement itself that might cause it to fail on one machine?
Its seems to fail when binding
LAMP
php 5.5.11
Myqsl 5.5.34
Apache 2.4.9
Mysqli enabled
WAMP
php 5.5.4
Mysql 5.5.24
Apache 2.4.2
Mysqli enabled
Code:
$query = $this->mysqli->prepare("SELECT * FROM post order by Status DESC limit ?, ? ");
$query->bind_param('ii',$lowerRange, $upperRange);
$query->execute();
$result = $query->get_result();
Its seems to fail when binding
LAMP
php 5.5.11
Myqsl 5.5.34
Apache 2.4.9
Mysqli enabled
WAMP
php 5.5.4
Mysql 5.5.24
Apache 2.4.2
Mysqli enabled