1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Hep in php ??

Discussion in 'PHP' started by mahiraj, Oct 29, 2007.

  1. #1
    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

    mahiraj, Oct 29, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Likes Received:
    Best Answers:
    Trophy Points:

    However, are you sure you're using $_FILES['userfile']['name'] and not $_FILES['userfile']['tmp_name']??
    nico_swd, Oct 29, 2007 IP