I want to retrieve data from my table. Data should come at random and in limit.
The following code limits data:
$sql = "SELECT * FROM `products` ORDER BY id LIMIT ".$_GET["start"]." , ".$_GET["end"].";";
However, I want it random, how should I do it?
startandendvariable, your code is dangerously vulnerable by SQL injections: en.wikipedia.org/wiki/SQL_injection