Sleep Mode
07-31-2006, 08:28 AM
Hi. Im creating an estate system that you can add, remove, search estates. Im a newbie, but i will try :) I learnt how to upload images from this forum. Im thinking to upload the images in the images folder and i am thinking to name it as : "image_id"_1 till 5 or whatever the limit is.
The question is: I will add a functionality that, if i check the checkbox of "Search only the estates that have photos", it will only search the estates that have photos. How can i do that?
Should i use table for this? I mean when i upload an item i can set the id_image of the estate 1 if there is a photo. Ok i solved it :) Now another question comes in to my mind:
To make my visitor see the contents and images of the estate, i will window.open a new page that is details.php?id=$id. And in that page, i can easily show the details of the estate by querying the database with that id. But how can i find the names of the pics? And do you recommend a way that i can store the names of the images?
Thank you...
The question is: I will add a functionality that, if i check the checkbox of "Search only the estates that have photos", it will only search the estates that have photos. How can i do that?
Should i use table for this? I mean when i upload an item i can set the id_image of the estate 1 if there is a photo. Ok i solved it :) Now another question comes in to my mind:
To make my visitor see the contents and images of the estate, i will window.open a new page that is details.php?id=$id. And in that page, i can easily show the details of the estate by querying the database with that id. But how can i find the names of the pics? And do you recommend a way that i can store the names of the images?
Thank you...