Re: [PHP-DB] Insert path string into Mysql

2002-11-18 Thread Steve Cayford
On Monday, November 18, 2002, at 01:10 PM, Alan Kelly wrote: $path = 'c:\\demo\\' ; $query = insert into PH_PHOTO (PHOTO_PATH) VALUES ('$path'); $result=mysql_query($query); I would guess that the backslashes are being interpreted once by php when the variable $path is interpolated into the

RE: [PHP-DB] Insert path string into Mysql

2002-11-18 Thread Hutchins, Richard
:21 PM To: Alan Kelly Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Insert path string into Mysql On Monday, November 18, 2002, at 01:10 PM, Alan Kelly wrote: $path = 'c:\\demo\\' ; $query = insert into PH_PHOTO (PHOTO_PATH) VALUES ('$path'); $result=mysql_query($query); I would

Re: [PHP-DB] Insert path string into Mysql

2002-11-18 Thread Peter Beckman
Don't you also have to put quotes around localhost in mysql_connect? Peter On Mon, 18 Nov 2002, Alan Kelly wrote: Hi, I have the following code, but it doesn't works. How can I insert a path string into a MySql Varchar cell? The result is always FALSE, but if $path is a normal string