Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. duplication in records [modified]

duplication in records [modified]

Scheduled Pinned Locked Moved Database
databasehelpphporaclesysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mhmo
    wrote on last edited by
    #1

    Dear all I created a Data Entry web page (PHP) that has a form with a number of components such as name, mobile , age, etc... (text fields). These data is entered in the database. This page is used by more than one user at a time. The problem is that some records are entered twice or more in the database. There are some records was entered 15 times and all of them at the same time. I am sure that my code execute the SQL statment once only. What could be the problem? Why the script is executed more than one time? Is it a Thread issue? Is it a Server issue? My database is Oracle and the page is in PHP. regards -- modified at 2:47 Wednesday 28th November, 2007

    V 1 Reply Last reply
    0
    • M mhmo

      Dear all I created a Data Entry web page (PHP) that has a form with a number of components such as name, mobile , age, etc... (text fields). These data is entered in the database. This page is used by more than one user at a time. The problem is that some records are entered twice or more in the database. There are some records was entered 15 times and all of them at the same time. I am sure that my code execute the SQL statment once only. What could be the problem? Why the script is executed more than one time? Is it a Thread issue? Is it a Server issue? My database is Oracle and the page is in PHP. regards -- modified at 2:47 Wednesday 28th November, 2007

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      hi mhmo you see, sometimes when we design our tables, we bare in mind that there might be two "john" or "Marry", so we need to identify them uniquely, we add an identity column or we look for something that will make them unique, like Social Security number, or ID number in your Country, but if you want to use that you can use IDentity column, by that you can track your problem, Another thing is that after your user submit your form that will insert data into the table, you have make sure that your user click it once. after a user click your Submit or save button once, Disable your button and display a Progress bar and you will have less Problems. Hope this Helps

      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

      M 1 Reply Last reply
      0
      • V Vimalsoft Pty Ltd

        hi mhmo you see, sometimes when we design our tables, we bare in mind that there might be two "john" or "Marry", so we need to identify them uniquely, we add an identity column or we look for something that will make them unique, like Social Security number, or ID number in your Country, but if you want to use that you can use IDentity column, by that you can track your problem, Another thing is that after your user submit your form that will insert data into the table, you have make sure that your user click it once. after a user click your Submit or save button once, Disable your button and display a Progress bar and you will have less Problems. Hope this Helps

        Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

        M Offline
        M Offline
        mhmo
        wrote on last edited by
        #3

        hi I know that. And already I have an identity column and also I am disabling the button. It seems that the problem is a Thread related or Server related. Thanks

        V 1 Reply Last reply
        0
        • M mhmo

          hi I know that. And already I have an identity column and also I am disabling the button. It seems that the problem is a Thread related or Server related. Thanks

          V Offline
          V Offline
          Vimalsoft Pty Ltd
          wrote on last edited by
          #4

          hi Am not strong in threads, i always make sure that i dont use them, but some situations like concurency handling, or your case, you have to use them. am sorry i could not help thanks

          Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups