What is the best value to use for id in an ActiveRecord pattern (PHP)
<p>What is the best value to use for id in an ActiveRecord pattern (PHP).</p>

<p>auto-increment is out of the question. I would like to generate an id value that I can use to create a new record, but will be unique.</p>

<p>random values have a chance of creating collision.</p>

<p>querying to get the last id used, and then incrementing that value has the chance that another record will be created at approximately the same time with the same id value.</p>

<p>what do most use in this situation? what is the best thing to use for this situation?</p>
