First test post

I've not anything wise to say. Lets try some code:

<cfquery name="getMilk" datasource="refridgerator">
SELECT *
FROM topshelf
WHERE label = 'milk'
</cfquery>
<cfoutput query="getMilk">
I am drinking #brand#s milk right now - and it is tasty</br>
</cfoutput>

Ok - a couple of cardinal sins in that example code. I use select *, and I have my query in the same template as my view. I should be hanged from the nearest lamp post, or at least lashed a fifty times. That is - if this had been an example of production code - which it is not.

Comments
Exelent post!!!
# Posted By John Doe | 7/19/06 6:40 AM