php pass auto incremnt id in next page
<p>I have a form where I insert a record and the ID (Primary key is Auto increment).
How I can show the ID in the next page after submit. I tried to echo <code>mysql_insert_id();</code> in next page but didnt work:</p>

<pre><code>&lt;?php echo "Your refrence number is = ". mysql_insert_id(); ?&gt;
</code></pre>
