I created a function i pasted the code below, But i keep getting the wrong result to display, it keeps thinking the $geostatus is equal to zero. My guess is that its rounding the numbers to zero because they are a really high negative number. Is there way to keep it from rounding? My code is below...
<?PHP
FUNCTION MOUSE ($GEOSTATUS)
{
IF ($GEOSTATUS == -2147483640)
{
$GEOCODE = \'Range\';
}
IF ($GEOSTATUS == -2147418112)
{
$GEOCODE = \'Envelop\';
}
ELSE IF ($GEOSTATUS == -2147483376)
{
$GEOCODE = \'Mouse Geocode\';
}
ELSE IF ($GEOSTATUS == -2147483644)
{
$GEOCODE = \'At Street\';
}
ELSE IF ($GEOSTATUS == -2143287296)
{
$GEOCODE = \'Dialog Box\';
}
ELSE IF ($GEOSTATUS == 0)
{
$GEOCODE = \'Not Geocoded\';
}
RETURN ($GEOCODE);
}
$query = \"select GEOSTATUS, addrid, GEostatus
from ADDRESS
where ADDRTYPE = \'CH\' and addrid = 7750\";
$
while (OCIFetchInto ($cursor, $values)){
$GEOSTATUS = $values[0];
MOUSE ($GEOSTATUS);