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
https://forums.phpfreaks.com/topic/122175-missing-records-in-mysql-table/
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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.