Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File link location in table field?

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
how do you establish a file location in a mysql db? Say I have an picture located at c:\pictures\pic1.jpg.

I think the format is something like '\\pictures\\pic1.jpg' but i'm missing something.

can someone assist?

thx
 
Is there a reason you don't just use a varchar field and enter the actual file location in the field?

Code:
INSERT INTO table_name (file_location_field_name) VALUES('c:\pictures\pic1.jpg');

***************************************
J. Jacobs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top