bonjour, j'essaie de faire tourner un script d'affichage page par page.

j'ai comme erreur:
Notice: Undefined variable: limite in C:\Program Files\EasyPHP 2.0b1\www\Affichage page par page\Affichage page par page.php on line 22

Fatal error: Call to undefined function verifLimite() in C:\Program Files\EasyPHP 2.0b1\www\Affichage page par page\Affichage page par page.php on line 46
les ligne concernées sont:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//=========================================
// initialisation des variables 
//=========================================
// on va afficher 5 résultats par page.
$nombre = 5;  
// si limite n'existe pas on l'initialise à zéro
if (!$limite) $limite = 0; 
// on cherche le nom de la page.    
$path_parts = pathinfo($_SERVER['PHP_SELF']);
$page = $path_parts["basename"];

et la ligne:

//=========================================
// vérifier la validité de notre variable 
// $limite;
//=========================================
$verifLimite= verifLimite($limite,$total,$nombre);
// si la limite passée n'est pas valide on la remet à zéro
if(!$verifLimite)  {
    $limite = 0;
}
si quelqu'un peut m'aider, merci.