Hi All, I want to upload image through a form into a database. In form i have a brows button i am selecting the image from that place, but when i submit this one all path like as "c:/images/first.jpg" goes to the database table but i want only the name of the image "first.jpg" should go into the database how will i remove the rest path ???? please help to do this THANKS..
www.php.net/basename However, are you sure you're using $_FILES['userfile']['name'] and not $_FILES['userfile']['tmp_name']??