I have a short question - is code below vulnerable for sql injection in any version of PHP?
$A = $_GET['A'];
$B = 10;
$q = "SELECT 1 FROM user WHERE name = 'admin' LIMIT ".($A*$B).",$B";
$res = mysql_query($q);
...
I saw that kind of code on my client website and got me to think... but couldn't find any attack vector :)