autoincrement problem

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default autoincrement problem

    i have a contact database and basic pages setup with ability to add contacts. i
    have implimented a notes feature that will allow each user to add notes to each
    customer. my problem is that after you add one note, and try to add another
    one the text is passed from the first note to the form, basically it won't let
    me add a second note.

    is there a way to check the database to find out what the next available
    NoteID would be and to use that number in a textbox.

    hope that wasn't too confusing.

    thanks

    acidrain9 Guest

  2. Similar Questions and Discussions

    1. primary key - an email address or autoincrement integer
      I have a users table, the typical firstname, lastname, phone, email etc.. Will have about 10,000 users. Mostly all selects as opposed to...
    2. SHOW TABLE STATUS & Autoincrement???
      Can someone please tell me what the Auto_increment field in the SHOW TABLE STATUS output means? I checked the online documentation and couldn't get...
    3. autoincrement reset
      Hey, I was wondering if it's possible to reset the "auto_increment" feature in MySQL. For example, if I have a database with a list that will...
    4. ViewState + AutoIncrement -- Okay; Session + AutoIncrement -- Not okay
      try calling the following function private static void KludgeAutoIncrement(DataColumn dc, int value) { try { System.Reflection.BindingFlags bf...
    5. Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
      HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I...
  3. #2

    Default Re: autoincrement problem

    I don't think I understand your question. You don't need to know the next
    note ID to insert it, and if you were to display the next note ID when the
    user began entering his note, there's no guarantee it would still be the
    next note ID by the time he finished and the note was actually inserted.

    Can you explain a little more?

    "acidrain9" <webforumsuser@macromedia.com> wrote in message
    news:cv53ef$cap$1@forums.macromedia.com...
    > i have a contact database and basic pages setup with ability to add
    contacts. i
    > have implimented a notes feature that will allow each user to add notes to
    each
    > customer. my problem is that after you add one note, and try to add
    another
    > one the text is passed from the first note to the form, basically it won't
    let
    > me add a second note.
    >
    > is there a way to check the database to find out what the next available
    > NoteID would be and to use that number in a textbox.
    >
    > hope that wasn't too confusing.
    >
    > thanks
    >

    CMBergin Guest

  4. #3

    Default Re: autoincrement problem

    i have a page set up that has a datagrid (contacts.aspx) with a list of
    contacts, when you click details for each contact the ID of the contact is
    passed to a detail page url which shows extended info, including notes.
    (contactdetails.aspx?ID123)

    i then have the option to add a new note for that contact (when clicked it
    passes the existing ID to the url i.e. addnote.aspx?ID=123

    my problem is that when i add one not it is fine but if i click the link to
    add another note it pulls up all of the previous note information into my form
    fields.

    i am trying to make it so that i can add as many notes as i may need.

    does that make sense???

    acidrain9 Guest

  5. #4

    Default Re: autoincrement problem

    Ahh, okay.
    It shouldn't be acting like that. Perhaps the page is being cached.

    Can you post your code, please (in a text file online with a link to the
    text file - large blocks of code coming from the web forum get badly
    mangled).

    "acidrain9" <webforumsuser@macromedia.com> wrote in message
    news:cv5prc$efa$1@forums.macromedia.com...
    > i have a page set up that has a datagrid (contacts.aspx) with a list of
    > contacts, when you click details for each contact the ID of the contact
    is
    > passed to a detail page url which shows extended info, including notes.
    > (contactdetails.aspx?ID123)
    >
    > i then have the option to add a new note for that contact (when clicked
    it
    > passes the existing ID to the url i.e. addnote.aspx?ID=123
    >
    > my problem is that when i add one not it is fine but if i click the link
    to
    > add another note it pulls up all of the previous note information into my
    form
    > fields.
    >
    > i am trying to make it so that i can add as many notes as i may need.
    >
    > does that make sense???
    >

    CMBergin 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