Page 1 of 1

UPLOADING imageFILE with other FORM elements

Posted: Mon Dec 22, 2003 7:33 am
by poeta_eletrico
hi,


i have a form where i have to send to mysql/database the following items:

1 product code
2 product details
3 product price
4 image

(*) later on related to a specif product name this informations will be "echo" to mount a table that will display this informations.

the schema is:

I only want to STORE the image into a FOLDER not in MYSQL database. So, I need to send together with this form the right PATH to the image. Every image will be related to a specific PRODUCT name. I have already the table created but i just can“t do what i commented above.

If you can help me please do it. I searched around but could not make up my mind to a solution. I know that the FOLDER on server must have CHMOD 777 and i have permission of the server to do it but...without the code it s impossible.

Thank u very much,
Poeta_Eletrico

Posted: Mon Dec 22, 2003 9:35 am
by DuFF
[EDIT]
Wow, I just realized that I read your entire post wrong.

For help with uploading images check out these tutorials:
http://www.php.net/manual/en/features.file-upload.php
http://www.phpbuilder.com/columns/bealers20000904.php3
http://codewalkers.com/tutorials/48/1.html
[/EDIT]

Posted: Mon Dec 22, 2003 5:18 pm
by poeta_eletrico
DuFF wrote:[EDIT]
Wow, I just realized that I read your entire post wrong.

For help with uploading images check out these tutorials:
http://www.php.net/manual/en/features.file-upload.php
http://www.phpbuilder.com/columns/bealers20000904.php3
http://codewalkers.com/tutorials/48/1.html
[/EDIT]

Mr Duff !

Your nick became from the BASS MAN from Guns N Roses - Duff Mckagan? :wink: Well, I read your post 2-3 hours ago and was completly different from what it s now ! But, as u write above that u read in the wrong side of the way no problem !!! I will try now solve my problem and I really hope your TIP be right!

Thank you very much...and if it s right I come back here and post more informations for the other users that come to this topic.

Bye!

Poeta_Eletrico

The Answer

Posted: Wed Jan 07, 2004 7:57 am
by poeta_eletrico
:::: well |


If someone stop here looking forward for the problem i have it s the same and struggling to have the answer posted here...well, it s a real crucial moment to say for you all that the links above it s not dawn clear to me but I keep going on !!


Thanks !

Poeta_Eletrico

Posted: Wed Jan 07, 2004 8:02 am
by malcolmboston
possible explanation not sure if it would work

couldnt you call all of these the same such as
1 product code -->computer_code
2 product details ->computer_details
3 product price ->computer_price
4 image -->computer_image

and then extract from the mysql table all of the items starting with computer_ ?

very simple, not sure if it would work if your creating an e-commerce site with huge amounts of products
also with image make it a path such as product_imgs/computer_image, technically it should work and then the hardest thing to do is creating the query

hope it helps

Yes!!!

Posted: Thu Jan 08, 2004 8:59 am
by poeta_eletrico
malcolmboston wrote:possible explanation not sure if it would work

couldnt you call all of these the same such as
1 product code -->computer_code
2 product details ->computer_details
3 product price ->computer_price
4 image -->computer_image

and then extract from the mysql table all of the items starting with computer_ ?

very simple, not sure if it would work if your creating an e-commerce site with huge amounts of products
also with image make it a path such as product_imgs/computer_image, technically it should work and then the hardest thing to do is creating the query

hope it helps


Yes !! You are right ...

The structure can be done this way but the point is UPLOAD the file on a reasonable way.

Poeta_Eletrico

Posted: Thu Jan 08, 2004 6:41 pm
by JAM
viewtopic.php?t=15833&highlight=file+upload

Is one of the threads on this forum that holds Q&A about fileuploads. http://www.evilwarus.com also has code snippets available for viewing. Might be interesting for other viewing.

Posted: Sat Jan 10, 2004 7:17 pm
by poeta_eletrico
JAM wrote:viewtopic.php?t=15833&highlight=file+upload

Is one of the threads on this forum that holds Q&A about fileuploads. http://www.evilwarus.com also has code snippets available for viewing. Might be interesting for other viewing.

Hello JAM,



Thanx for the tip. I will go there right now.

Poeta_Eletrico