i want to do the Pagination using the limit sql function but it shows me an
error that both of $limitt and $start are undefined didn't know the solution.
Produit.php
public static function vue()
{
$list = [];
$db = Db::getInstance();
$limitt=10;
if(isset($_GET['page']))
{
$page=$_GET['page'];
}
else
{
$page=1;
}
$start=(($page-1)*$limitt);
$req = $db->query('SELECT * FROM produit WHERE nomCategorie="Vue_Homme" limit $start,$limitt');
$list=$req->fetchAll(PDO::FETCH_CLASS,'ArrayObject');
return $list;
}