I gave a pagination issue:
$num_por_pagina = 5;
$paginac = $_GET[paginac];
if (!$paginac) {
$paginac = 1;
}
I would like to take only integers numbers to avoid PHP / SQL injection
For example accessing:
http://www.mysite.com/index.php?paginac=3.3 or http://www.mysite.com/index.php?paginac=3,3
Resulting You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4.6, 2' at line 7
From:
accessing www.mysite.com/index.php?paginac=3.3 or www.mysite.com/index.php?paginac=3,3
Resulting error, this page isn't active.