Debugging Dynamic Database Queries - macromedia COLDFUSION MX 7 Web Application Construction Kit [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

macromedia COLDFUSION MX 7 Web Application Construction Kit [Electronic resources] - نسخه متنی

Ben Forta, Raymond Camden, Leon Chalnick, Angela Buraglia

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید











  • Debugging Dynamic Database Queries


    Before we finish this chapter, there is something you should be aware of. Look at the following code:


    <!--- Get a movie from database --->
    <cfquery name="movie" datasource="ows">
    SELECT FilmID, MovieTitle,
    PitchText, Summary,
    DateInTheaters, AmountBudgeted
    FROM Films
    WHERE FilmID=#URL.FilmID#
    </cfquery>

    Chapter 3, "Accessing the ColdFusion Administrator," I mentioned the debugging screens (and told you that we'd use them in this chapter). The debugging screens can be used to append debug output to the bottom of generated pages, as seen in Figure 10.19.

    Figure 10.19. Dynamic SQL specific are displayed along with the standard ColdFusion debugging output.

    Chapter 3 for instructions on turning on debug output. Once enabled, execute any page in your browser and the debug output will be appended automatically.

    NOTE

    If you are browsing files within Dreamweaver the debug output will be displayed in the results window beneath the editor.

    TIP

    Most ColdFusion developers find that the tags you have learned thus far, <cfquery>, <cfoutput>, <cfset>, <cfif>, and <cflocation>, account for almost all the CFML code they ever write. As such, it's highly recommended that you try every example in this chapter before proceeding.


  • / 281