title: Get the generated uuid after insert php
body: <p>i have a table field type varchar(36) and i want to generate it dynamically by mysql so i used this code:</p>
  
  <pre><code>$sql_code = 'insert into table1 (id, text) values (uuid(),'some text');';
  mysql_query($sql_code);
  </code></pre>
  
  <p>how can i retrieve the generated uuid immediately after inserting the record ?</p>