1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power
    Hi. I hope someone can help with this. I am new to PHP but wuickly learning it's usefulness! Here is my problem:

    I am trying to insert a form value (input type = 'file') into an MSQL database.

    When I try to do this, however, the query fails. I suspect this is caused by the fact that the value includes a path (i.e. D:tmpimage.gif) which contains illegal characters. I am a bit unsure, however, how to parse or escape those characters from the string.

    Any ideas? Thanks.

  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Rep Power

    read the following article..

    SR -

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited July 15, 2000).]
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Let's take this a step farther...

    Obviously our form input="file" will
    give us a few nice little tid bits
    of information about our file,
    like it's mime type, file size, and file name...

    But how about the dimensions?

    Seems there has to be way to obtain that information since our browsers are smart enough to know that by readin the file??

    SnR Graphics,
    Low Cost Hosting and Web Development.

Similar Threads

  1. Upload image & change filename before storing
    By irishairpics in forum PHP Development
    Replies: 3
    Last Post: January 12th, 2004, 03:50 PM
  2. Upload image & change filename before storing
    By irishairpics in forum Scripts
    Replies: 0
    Last Post: January 9th, 2004, 03:03 PM
  3. Python programing newbie needs help
    By SuperDude in forum Python Programming
    Replies: 15
    Last Post: December 6th, 2003, 11:14 AM
  4. convert filename to string?
    By swoopx in forum ASP Programming
    Replies: 2
    Last Post: April 24th, 2003, 03:44 PM
  5. how to get the filename by given the FILEHANDLE?
    By digitsnake in forum Perl Programming
    Replies: 6
    Last Post: March 26th, 2003, 07:09 AM

IMN logo majestic logo threadwatch logo seochat tools logo