Welcome Guest, Not a member yet? Register   Sign In
Pagination Problem
#1

[eluser]Antonius Willson[/eluser]
i need help with Pagination Class.

A Database Error Occurred
Unable to connect to your database server using the provided settings.

Filename: C:\xampp\htdocs\CodeIgniter\system\database\DB_driver.php

Line Number: 124


when i open http://127.0.0.1/codeigniter/index.php/books

how i solve this problem.

thanks.
#2

[eluser]JHackamack[/eluser]
This doesn't seem like a pagination problem. Double check your config settings in database.php to make sure they match up with your Database server's information.
#3

[eluser]Antonius Willson[/eluser]
[quote author="JHackamack" date="1298807843"]This doesn't seem like a pagination problem. Double check your config settings in database.php to make sure they match up with your Database server's information.[/quote]

i got the problem.
but now, new problem was found that's
Fatal error: Class 'Model' not found in C:\xampp\htdocs\CodeIgniter\application\models\books_model.php on line 2

this is books_model.php code :
Code:
<?php
class books_model extends Model {
    
    function __construct(){
        parent::Model();
    }
    
    function get_books($num, $offset) {
        $query = $this->db->get('christian_books', $num, $offset);
        
        return $query;
    }
}
?>
#4

[eluser]Antonius Willson[/eluser]
the problem was solved.
Thanks.
Smile
#5

[eluser]InsiteFX[/eluser]
Model names first character has to be capital in class

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB