How to attach mysql_insert_id in a file upload?

inslain

New Member
how do we attach mysql_insert_id() in a file uploads so that each file gets unique name ? I did try the following code but didn't work. please advice. Yhanks\[code\]$id = mysql_insert_id();$dest = trim($uploaddir. $id. basename($_FILES['photo']['name']));\[/code\]
 
Back
Top