473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Saving A Windows File Path

xtianixm
hola everyone,

how can i save a file path into mysql database without removing the '\'

im using XAMPP for my database or phpmyadmin then when i try to insert a file path (ex. D:wallpaper\me.jpg) it removes the backslash and now it became
D:wallpaperme.jpg ..when i try load it an error occur "file not found" because the backslash was remove!

..help!
Aug 28 '07 #1
2 4050
docdiesel
297 Expert 100+
Hi,

this doesn't sound like a MySQL problem to me. I guess it's a topic related to your programming language, like you have to escape the "\" by a double one, "\\".

Providing more information could definitely help. Are you using Perl or PHP? Please post at least that part of your code that's relevant to this problem.

Regards, Bernd
Aug 28 '07 #2
mwasif
802 Expert 512MB
Use addslashes() if you are using PHP to insert the data in DB.
Aug 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: tom | last post by:
Hi lads - got an issue with renaming a file. I'm actually using the FSO method 'MoveFile'.I did try to do my best, but doesn't want to work. this is the code: Dim fso set fso =...
4
by: Michael Kennedy [UB] | last post by:
Hi Everyone, I have this multithreaded C# windows forms application which does a lot of image processing. Occasionally, I get the following error: A generic error occurred in GDI+....
2
by: stephen | last post by:
I just threw this together because I find myself needing it now and then. Requires PIL and optionally ImageMagick to convert to png, since I think PIL is not able yet to convert a bmp to a png. You...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
1
by: terrorix | last post by:
I want to save uploaded file to disk. I have this construction: HttpPostedFile myFile = ((HttpRequest)Request).Files; if (myFile != null) { string fn =...
0
by: AxOn | last post by:
Hi! I'm having trouble creating a save funktion. How can I save the contens of a new richTextBox that is created from an "external" class file? The open funktion looks like this: public void...
2
by: Devlei | last post by:
I want to be able to save a file to the Desktop. I realise the Desktop path varies according to the version of Windows being used. Can some-one help me with the following three issues: 1. Is the...
0
by: Gregaz | last post by:
I have a form in my project, which I open as a DialogBox. On that that form there are 3 TextBoxes. To one of them I want to write in a file path. To have it easier I have an OpenFileDialog control...
2
by: tomlebold | last post by:
It takes five minutes when using object linking and embedding to save a PDF file using a normal from. The data type is image in an SQL Sever table. We are trying to keep track of the legal...
14
by: Stodge | last post by:
I'm trying to do the following. I have a Python application that is run: python app1.py --location=c:\test1 What I want to do is save the location parameter, so I can then do (in the same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.