I am trying to add image uploading for our current properties and easy to view image setup.
The closest thing to what I am looking for would be how ebay has their picture viewing setup, with the small pictures listed on a side and the main large one changes when you click on them. Woud this be a combo of php, mysql and javascript or something to that effect?
I would need a way to be able to upload any number of pictures for the homes and have them all returned, so for the returning of pictures I would imagine I could setup a script that migth look something like this:
PHP Code:
$result = mysql_query("SELECT * FROM $property_table WHERE PropertyRef = '$_GET[PropertyRef]' LIMIT 1") or die ("Database Error 32");
$row = mysql_fetch_array( $result );
$PropertyImageURL = $row['PropertyImageURL'];
if (empty($PropertyImageURL)) {print "<image src=\"$ImagePath/nopropertyimage.jpg\">";}
else { this is where I get lost }
What would be the best way to make this display these pictures?
And also, how do I upload multiple images for each property as well as simultaneously create a thumbnail of each one?
I know this could be very complicated, but any help would be greatly appreciated!
Thanks ahead of time,
Will
|