Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread raditha dissanayake
i sidhu wrote: * iNder Sidhu wrotes:- I use following query to upload the image in database DATABASE_query_die("INSERT INTO images (`name`, `status`, `image`, `size`, `type`) VALUES (name.gif', NULL, 0x52306c474f446c685a414179414f594141502f2f2f2f2f3238502f31372f54313976503, '1.624 kb', 'image/gif

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread i sidhu
* iNder Sidhu wrotes:- I use following query to upload the image in database DATABASE_query_die("INSERT INTO images (`name`, `status`, `image`, `size`, `type`) VALUES (name.gif', NULL, 0x52306c474f446c685a414179414f594141502f2f2f2f2f3238502f31372f54313976503, '1.624 kb', 'image/gif')"); 0x52

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread Curt Zirzow
* Thus wrote raditha dissanayake: > The approach that an overwhelming majority of PHP developers (and other > developers for that matter) use is to simply store the image on the > file system. If these images are part of a web application you can then > store a reference to the image in the dat

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread Five
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The approach that an overwhelming majority of PHP developers (and other > developers for that matter) use is to simply store the image on the > file system. If these images are part of a web application you can t

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread raditha dissanayake
I've been playing with this for two days and am wondering if there's a way to retrieve and display the images in a browser using only php or is it necessary to use a graphics library like GD? The approach that an overwhelming majority of PHP developers (and other developers for that matter) us

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread John W. Holmes
Five wrote: I've been playing with this for two days and am wondering if there's a way to retrieve and display the images in a browser using only php or is it necessary to use a graphics library like GD? You don't need GD unless you want to modify the image (and even then there are other options)

Re: [PHP] upload an image and store it in mysql

2004-07-16 Thread Five
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You're seeing raw data and need to specify the mime type with headers. Search the > mailing list archive, there's a few example scripts in there. Just keep in mine that you need to create a separate script that handles th

Re: [PHP] upload an image and store it in mysql

2004-07-14 Thread raditha dissanayake
I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? although I'm against

RE: [PHP] upload an image and store it in mysql

2004-07-14 Thread Ed Lazor
You're seeing raw data and need to specify the mime type with headers. Search the mailing list archive, there's a few example scripts in there. Just keep in mine that you need to create a separate script that handles the display of images. > Thanks, that seems to work. Although trying to ret

Re: [PHP] upload an image and store it in mysql

2004-07-14 Thread Five
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Five wrote: > > I have php code that takes text input from a webpage and and stores it in a mysql > > data base. > > I tried uploading small images (jpg) using basically the same syntax but they > > don't make it into

Re: [PHP] upload an image and store it in mysql

2004-07-14 Thread John W. Holmes
Five wrote: I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? although I'm ag

[PHP] upload an image and store it in mysql

2004-07-14 Thread Five
I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? -- PHP General Mailing Li