Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Looping, Setting and Updating! Oh My.

$
0
0

No problem.  Also it's a good idea to use <cfqueryparam> in all your queries when passing in values from elsewhere.  Basically it helps performance and reduces chances of SQL injection.  e.g.

 

<cfquery datasource="square" name="addGeo">

        UPDATE glvar_daily_bulk

        SET Latitude =<cfqueryparam value="#lat#" cfsqltype="cf_sql_float">,

        Longitude = <cfqueryparam value="#long#" cfsqltype="cf_sql_float">

        WHERE MLS_Id = <cfqueryparam value="#ListingShort.MLS_Id#" cfsqltype="cf_sql_integer">

    </cfquery>


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>