Re: [PHP-DB] INSERT img+ID

2009-02-13 Thread Dee Ayy
On Sat, Jan 24, 2009 at 7:01 AM, Emiliano Boragina wrote: > > I want to insert a JPG image ($creacion) with the ID (from the data base, > MEDIUMINT AUTOINCREMENT): 23image.jpg in the data base, and send the > information to a e-mail addres. How do I do that? > > Thanks a lot, > > > > +

Re: [PHP-DB] INSERT img+ID

2009-01-26 Thread Chris
I want to insert a JPG image ($creacion) with the ID (from the data base, MEDIUMINT AUTOINCREMENT): 23image.jpg in the data base, and send the information to a e-mail addres. How do I do that? There are plenty of tutorials/examples of this around. Search for something like "mysql insert image

RE: [PHP-DB] INSERT img+ID

2009-01-24 Thread Chris Verges
Hi Emiliano, You may want to look at escaping your $_POST, $_REQUEST, and $_GET variables before using them in their raw form. Otherwise, you may be susceptible to SQL injection attacks. http://us2.php.net/mysql_escape_string This may also affect the upload of your binary data using SQL, sinc