width=> = $width) && ($y <= $height)) { $ratio = ($x/$width); $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> = $height)) { $ratio = ($y/$height); $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> = $width) && ($y >= $height)) { $ratiox = ($x/$width); $ratioy = ($y/$height); If ($ratiox > $ratioy){$ratio = $ratiox;} else {$ratio = $ratioy;} $x = round($x / $ratio); $y = round($y / $ratio); ?> width=> width=> (int)$dt2) return(1); elseif((int)$dt1 == (int)$dt2) return(0); else return(-1); } //For home page function displayImageHome($x,$y,$width,$height,$image) { //------------- if x is less than width and y is less than height ----------- If (($x <= $width) && ($y <= $height)) { return ""; } //------------- if x is greater than width and y is less than height ----------- elseIf (($x >= $width) && ($y <= $height)) { $ratio = ($x/$width); $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if x is less than width and y is greater than height ----------- elseIf (($x <= $width) && ($y >= $height)) { $ratio = ($y/$height); $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if x is greater than width and y is greater than height ----------- elseIf (($x >= $width) && ($y >= $height)) { $ratiox = ($x/$width); $ratioy = ($y/$height); If ($ratiox > $ratioy){$ratio = $ratiox;} else {$ratio = $ratioy;} $x = round($x / $ratio); $y = round($y / $ratio); return ""; } //------------- if none of the above conditions are satisfied ----------- else { $x = $x; //--- Use the actual width and height ------- $y = $y; //--- Use the actual width and height ------- return ""; } } //this function is used in advsearchresults to display only existing values from tblimage function getImageInfo($field,$users) { $returnString = ""; $DbImage = new Database; $DbImage->execute ("SELECT distinct a.".$field." FROM tblimage a, tblmember b where b.regStatus=1 and a.userID not in ($users) and a.userID=b.userID"); for ($i=0; $i<$DbImage->recordCount; $i++) { $returnString = $returnString . $DbImage->Fields["$field"] . ","; $DbImage->moveNext(); } $DbImage->close(); $returnString = $returnString . "0"; return $returnString; } ?> WorldImages.com - Navigating the world of art

Existing members
 please enter your email address and password to login 

Email Address:
Password:
Remember my email address
Forgot your password? click here

Visitors and Customers - learn about our free member services