topical media & game development
#mobile-ar-8-3.txt / txt
// Prepare the search value which will be used in SQL statement.
// Arguments:
// searchbox ; the value of SEARCHBOX parameter in the GetPOI request.
//
// Returns:
// searchbox_value ; If searchbox parameter has an empty string,
// return a string which is a combination of numbers, letters
// and white spaces. Otherwise, return the value of searchbox parameter.
function GetSearchValue ( searchbox exists, prepare search value.
if ( isset(searchbox_value = ‘[0-9a-zA-Z\s]*’;
// if searchbox value.
if ( !empty(searchbox_value = searchbox_value;
} //if
else {
// If
// throw new Exception(“searchbox parameter is not passed in GetPOI
// request.”);
}//else
}// GetSearchValue
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.