Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
easycfm.com has entry level tutorials.
Copy link to clipboard
Copied
<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>
Copy link to clipboard
Copied
Thanks a million for helping and information,
Regards,
iccsi,