looking a hello world example
I am a very new ColdFusion.
I would like to have a very simple hello world example code and connection to backend database.
Your help and inforamtion is great appreciated,
Regards,
iccsi
I am a very new ColdFusion.
I would like to have a very simple hello world example code and connection to backend database.
Your help and inforamtion is great appreciated,
Regards,
iccsi
<cfoutput>
Hello World
</cfoutput>
Once you've created a Datasource that links to your database in the CF ACP, you can run and reference a query as such:
<cfquery name="example" datasource="name_of_the_datasource">
SELECT * FROM TABLENAME WHERE COLUMN = VALUE
</cfquery>
<p>This will show you a dump of the query</p>
<cfdump var="#example#">
<p>This tells you how many records were returned: #example.recordCount#</p>
<p>This is how you reference a returned field: #example.name_of_field#</p>
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.