Update the selected random row PHP
<p>I'm trying to update the selected random row in database here is my php code</p>

<pre><code>$offset_result = mysqli_query($conn, "SELECT FLOOR(RAND() * COUNT(*)) AS `offset` FROM `tbl_combi` WHERE `clear` = 0 ");
$offset_row = mysqli_fetch_object( $offset_result );
$offset = $offset_row-&gt;offset;
$result = mysqli_query($conn, "SELECT * FROM `tbl_combi` LIMIT $offset, 1");    
$result_fetch = mysqli_fetch_array($result);

echo $result_fetch[1];
</code></pre>