MACROMEDIA COLDFUSION 5-DEVELOPING Bedienungsanleitung Seite 25

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 47
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 24
ColdFusion MX 7 Getting Started Experience Tutorial Page 25 of 47
Figure 40. Saving the
index.htm page as a
ColdFusion page
Saving a file as a CFM file does not require you to put ColdFusion code into it. However, it does mean that
ColdFusion MX 7 will always scan the document to see if there are any ColdFusion commands in it.
3. Click the Preview/Debug in browser button on the page toolbar, or press the F12 key to access the Windows
keyboard shortcut for the same action. This launches your new index.cfm page in a browser window. (It looks exactly
the same as the index.htm page, since you have not made any changes to the code yet.)
Figure 41. Choosing to
preview the index.cfm page
in a browser
4. Return to Code view to start writing a SQL statement to select the fields you need from the database. (See the
following figure and the relationships diagram on the right.)
Figure 42. Reviewing
relationship between data
and display
5. Select the needed fields from any table in the relationships diagram (to the right above). Start with the fields in the first
table listed, the ARTISTS table. In Dreamweaver’s Code View, above the <!DOCTYPE> tag, type the following two
lines of code:
SELECT FIRSTNAME, LASTNAME
FROM ARTISTS
Seitenansicht 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 46 47

Kommentare zu diesen Handbüchern

Keine Kommentare