Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Saving Image path

Options
  • 28-01-2009 6:04pm
    #1
    Closed Accounts Posts: 73 ✭✭


    Can anyone tell me how do you store the file path in mysql


Comments

  • Closed Accounts Posts: 2,349 ✭✭✭nobodythere


    Not enough detail to answer this question. Are you using PHP? What are you trying to do, upload an image file and store its location in a MySQL db?

    If so, take a look here: http://www.tizag.com/phpT/fileupload.php

    When you upload a file with PHP it's stored in a temporary location, you have to copy the file to a given folder. In the example in section "php - file upload: move_uploaded_file function" you can use the variable $target_path to put it in to the database (when you're doing your SQL "INSERT INTO" or whatever query).


  • Closed Accounts Posts: 73 ✭✭Protype


    Ye i want to store the image path but not the image, i store the image in a folder on the server. i want MySQL to store the path.


  • Registered Users Posts: 7,468 ✭✭✭Evil Phil




Advertisement