I am having trouble in finding the right code for my website. I want to fetch random row from a SQL data base using a PHP code and also I want the code to select any random row accept the row with a particular ID. This is the code that I came up with:
<?php
$sql = "SELECT column FROM table ORDER BY RAND() LIMIT 1";
?>
I want this code to select any row accept the row whose id = 1.
Thank you in advance for showing your interest.