CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 image upload question

Print topic Send  topic

Author Message
troy
Posted: 03/12/2005, 4:14 PM

hi there, i am using css, php, and MySQL database.

I have a folder called bands and in that folder are images.
in my mysql database i have a field called imageURL and when i upload the image via an upload form it puts the file name in there ok.
But in the database the file says eg: image.jpg , but i want it to say bands/image.jpg.
so my question is can i set the name bands/ in the field called imageURL , so when i upload it puts the name bands/ in front of the file name.

thank you.
troy
Posted: 03/12/2005, 4:26 PM

i should say im using CCS.
and are using the upload componant in there.
I have made the TEMP folder and the BAND/ folder and the images upload into the folders good as gold.
but when i view the file name in the database , it donst have the band/ in front of the file name , if you no what i mean.
cheers
lammy

Posts: 49
Posted: 03/13/2005, 6:01 AM

I had this problem, you need to go to your image on the grid
right click
goto image properties
then where it says {image.scr} or what ever put the
put band/ infront this sends it to the right directory for the image
i.e band/{image.scr}

hope this helps
View profile  Send private message
troy
Posted: 03/13/2005, 4:02 PM

thanks lammy...
its works great now, thank you very much.
Damian Hupfeld
Posted: 03/16/2005, 4:17 AM

Alternatively when you want to display the image you preface it with bands
eg:

<img src="band/{image}">

regards
Damian Hupfeld
http://www.nexthost.com.au/services.php


"troy" <troy@forum.codecharge> wrote in message
news:54234d491ade53@news.codecharge.com...
> thanks lammy...
> its works great now, thank you very much.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.