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
UPLOADING imageFILE with other FORM elements
Moderator: General Moderators
-
poeta_eletrico
- Forum Commoner
- Posts: 32
- Joined: Mon Dec 22, 2003 7:33 am
- Contact:
[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]
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]
-
poeta_eletrico
- Forum Commoner
- Posts: 32
- Joined: Mon Dec 22, 2003 7:33 am
- Contact:
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?
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
-
poeta_eletrico
- Forum Commoner
- Posts: 32
- Joined: Mon Dec 22, 2003 7:33 am
- Contact:
The Answer
:::: 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
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
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
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
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
-
poeta_eletrico
- Forum Commoner
- Posts: 32
- Joined: Mon Dec 22, 2003 7:33 am
- Contact:
Yes!!!
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
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.
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.
-
poeta_eletrico
- Forum Commoner
- Posts: 32
- Joined: Mon Dec 22, 2003 7:33 am
- Contact:
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