Hi
I too am having a similar problem with example.php usind PHP and MySQL – followed the instructions in the demo. The error message is exactly the same as ivanhalen's but refers to line 42:
// calculate the total pages for the query
if( $count > 0 ) {