PHP Rand duplicating on mysql insert
<p>im trying to insert records in my table and have a unique id for each. </p>

<p>To do this i'm using the rand() function...</p>

<pre><code>&lt;input type="hidden" name="randkey" value="&lt;?php echo rand(0000000000,9999999999);?&gt;" /&gt;
</code></pre>

<p>My only problem is on each insert my random key/value seems to be the same? Surely on each page refresh this value should change? Can anybody explain why this may be happening? </p>
