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
Share on other sites

That's not it mate. I thought decimal 3,2 in the "type" specified a maximum of 3 digits to the left and 2 to the right. Even changing it around, it doesn't fix the problem. Anything else leap out?

 

I am really grateful to anyone!

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.