Re: Add picture in DB

From: Date: Tue, 29 Oct 2002 00:03:22 +0000
Subject: Re: Add picture in DB
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121795@lists.php.net to get a copy of this message
Have you used a SQL-Statement like: INSERT INTO tablename VALUES ('',LOAD_FILE('$file') to insert it with load_file? I used it without problems that way. Christian Ista wrote:
Hello, I have a form, with 2 inputs ( a type "file" and a type "text") and a submit. When I submit I receive an error, like this : ':\\Inetpub\\wwwroot\\test\\small2158.jpg)' at line 3 Could you tell me what can I do ? The better solution is save the picture in the database or save the link to this picture un the database ? Christian,


« previous php.general (#121795) next »