Here's where I'm at:
$results = mssql_query("select *, sqrt (sqr('$longitude' + Longitude) + sqr('$latitude' + Latitude)) as miles, from agent_data where Longitude >= '".$long_sub_q."' and Longitude <= '".$long_add_q."' and Latitude >= '".$lat_sub_q."' and Latitude <= '".$lat_add_q."' and AGLZIP = '$zip' order by miles");
I get back...
Warning: MS SQL message: 'sqr' is not a recognized function name. (severity 15) in c:\inetpub\wwwroot\find_an_agent\results.nycm on line 136
What's wrong with my 'sqr' function?
Thanks.