Jump to content

Missing records in mysql table


mfoster

Recommended Posts

I have a table of events that I have stored in a mysql (Mysql 5.0) table.  The table is accessed by a php script that allows the general public to view the events.  I have another program that allows me to add, delete, and edit the information in the table.  I am the only person that has access to that script.  However, the table randomly has records deleted despite the fact that I have not deleted them.  I have examined my scripts and can't seem to find any problems in them.  I have a number of other msql tables that do not exhibit this behavior.  My service provider finds nothing wrong with the tables.

 

Any ideas?

Link to comment
Share on other sites

You might want to do a repair on the table(s) just in case.

 

How are you guaranteeing that you're the only person who has access to the delete functionality?

 

It might have to do with your code and how people can inject SQL. Make sure you're using mysql_real_escape_string() or mysql_escape_string() on values before inserting/updating/deleting in table.

 

Forum members won't be able to help much without seeing your actual code.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.