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 ($path ='demo') than it works fine.
What can I do? (I use WInXp, Apache, and Php4.2.2)
Thanks!
<?php
$database="PH";
mysql_connect(localhost,"root","");
@mysql_select_db($database) or die( "Unable to select database");
$path = 'c:\\demo\\' ;
$query = "insert into PH_PHOTO (PHOTO_PATH) VALUES ('$path')";
$result=mysql_query($query);
mysql_close();
?>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php