Jump to content

Editing CSS breaks my database


brentman
Go to solution Solved by brentman,

Recommended Posts

I have been working on a php application and spent a lot of time on it. I have finally finished. Only one problem. The weirdest bug keeps happening.

 

I have a file that has one place where it reads the database and echos out an iframe and some CSS. It is a pretty simple file. There are no database writes in it.

 

Every time I go in there and try to edit my CSS, my database breaks.

 

What happens is the iframe (which does contain writes and lots of complex logic) has two inputs and one output. When I run this file on its own, I can do it all day long with no problems. When I run the URL with it in as an iframe, no problems. When I open the file and make any change to the CSS, it breaks.

 

I set the changes back how they were yet it still will not work.

 

I clear all the data out of the database incase there was a bad write of data. Does not work.

 

The only thing that works is I download a current backup of the database (even in the broken form) and reupload it. THIS WORKS!

 

What is going on here! What should I do (besides not ever editing css on my site ever again)? I am going crazy over this!

Edited by brentman
Link to comment
Share on other sites

  • Solution

Also btw: I tried going down my big file that is all php that is the iframe and the variables make it all the way through to a large complex mysql query and that is where it stops. The query has not changed in any way. So it is obviously something wrong with the mysql database I think.

 

I am just at a loss of what to check on or how to permanently fix the issue.

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.