Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

looking a hello world example

Engaged ,
Oct 28, 2012 Oct 28, 2012

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

720
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Oct 29, 2012 Oct 29, 2012

<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>

Translate
LEGEND ,
Oct 29, 2012 Oct 29, 2012

easycfm.com has entry level tutorials.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 29, 2012 Oct 29, 2012

<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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 30, 2012 Oct 30, 2012
LATEST

Thanks a million for helping and information,

Regards,

iccsi,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources