Welcome Guest, Not a member yet? Register   Sign In
Db error
#2

[eluser]TWP Marketing[/eluser]
This is the code in your DB_active_record.php
Quote: /**
* Sets the LIMIT value
*
* @param integer the limit value
* @param integer the offset value
* @return object
*/
public function limit($value, $offset = '')
{
877 $this->ar_limit = (int) $value;

if ($offset != '')
{
$this->ar_offset = (int) $offset;
}

return $this;
}
Does your code use a LIMIT clause? The value passed is expected to be numeric and is cast to an integer, as you can see. If you're not passing a numeric value for the LIMIT value, it would give the error you have seen. Check your code for the LIMIT clause and determine what is being used as the limit value.


Messages In This Thread
Db error - by El Forum - 09-10-2012, 04:23 AM
Db error - by El Forum - 09-10-2012, 12:00 PM
Db error - by El Forum - 09-10-2012, 04:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB