Jump to content

MySQL Disaster


e1seix

Recommended Posts

Hi all,

 

I have a database which while fiddling about with my php earlier managed to change all the info for over 700 entries. The only way for recovery is to import a copy of the database I thankfully only backed up earlier on too.

 

There is a problem though. My database contains decimal information on prices for many products. When I have uploaded the database text file, it has changed any info that was above 9.99 and defaulted it to 9.99.

 

As my site is an affiliate site, I use regex in php to keep update all prices from the extrernal websites and even when this is performed if the result is more than 9.99 it will still only ever state that it's 9.99.

 

I'm hoping this is something simple to correct but this is crippling me and I am so panicked. What can I do ro what have I done wrong? both values of the datafields are set to decimal 3,2. Any help would be a god-send at this stage.

 

Many thanks,

Link to comment
https://forums.phpfreaks.com/topic/90000-mysql-disaster/
Share on other sites

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.