how to go to a specific record

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default how to go to a specific record

    [I posted this over in general_discussion, but this might be a better
    group for it.]

    DB is mySQL

    I'm trying to display a schedule of events, and only want to display
    dates that had/have events scheduled.

    Considerations:

    1) not all dates have events

    2) The first date to display should be the most recent date before
    "today" that had any events scheduled.

    3) If there are events "today", I want to display today's events and the
    next date that has events scheduled.

    4) If there are no events today, I want to display the next two dates
    that have events scheduled.

    I've done a SELECT DISTINCT (sorted by date) of my schedule to pull all
    dates that had any events scheduled. Now what? I know I need to query
    my schedule to pull the events for the dates I need, but how do I
    establish the low & high dates?


    Suppose I've done a SELECT DISTINCT that pulled five dates that have
    data:

    2005-08-01
    2005-08-02
    2005-08-03
    2005-08-06
    2005-08-08

    Suppose MyDate = 2005-08-06

    I want to set MinDate to the previous date that had an event (2005-08-
    03) and Max date to the highest of the next two dates that have events
    (2005-08-08).

    It looks like mysql_data_seek might help me, but I don't know how to use
    it in CF (fairly new to CF, just done the basics).

    Thanks,
    John

    Johnny Guest

  2. Similar Questions and Discussions

    1. Extracting specific record from XML
      I'v created a SWF movie that imports an XML file and gets a variable from the ASP page that it's in. In the SWF, how do I display the XML record...
    2. Move to specific record
      hii peeps, what i want to knowe is.. where i can find a extension fore: move to specifi record ore it exist..? greets Ej.
    3. Showing a specific record from a recordset
      Hi, I am trying to find a way of displaying a specific record (the latest one entered by a user) from a recordset as opposed all of the records or...
    4. PHP extension Move to specific record
      Hi there, I'm searching for the move to specific record extension for PHP. Does anybody know where to find it? If so... please let me know ...
    5. how do I go to specific record in preview to print it
      dev 6, xplat. On a form layout I have a print button. The user is browsing all records and finds one they want to print. I have created a more...
  3. #2

    Default Re: how to go to a specific record

    D?j? vu?
    BKBK Guest

  4. #3

    Default Re: how to go to a specific record

    > D?j? vu?

    Wasn't sure if this was a more appropriate forum. Does .database_access
    mean accessing databases, or MS Access?

    Anyway, I've made progress (but am stuck again) and continued the thread
    in the general_discussion NG.

    Thanks,
    John

    Johnny Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139