Extremely confusing problem - just strange

PythonPython Forum LeaderThe Royal RAM
Ok now Im just plain confused....

Ive got a script which lists some simple stuff from a database...

Now in a table in the database Ive got a table which has got a field called `imp`.

This imp field holds a number which for example is 100 for all of the records.

Now for some reason every time I refresh or access my script that number is deducted by 1 - it updates every single recored in that table by deducting one.

Now the strange part - There are no update queries or anything like that in my script. Also I am not including any files which could be doing it...

I have even gone as far as putt comments (//) infront of all my database queries and yet it still happens.

This is just beyond me and Im confused to say the least...

Strange... I cant find anything which would make it update...

The Royal Ram

Comments

  • PythonPython Forum Leader The Royal RAM
    Little update on this problem...

    Not only does it update my database on that script but also on a script which I created about a month ago - again which has no database interaction apart from queries.

    I also put die(); at the top of my script which would mean none of the rest would be processed... and yet still - it updated the database :(

    Anyone got any possible explanations

    The Royal Ram

  • ChroderChroder Senior Member The Royal RAM
    Never ever heard of this happening before. So, it does this update whenever you run any PHP script?
  • martian2k4martian2k4 Llama Hunter Moderator
    Py, Maybe you could give us the script ....
    Free MySpace Layouts- Coming soon
    Photoshop Tutorials- Coming soon
    Premium PHP Scripts- Coming soon

    Haha i should really do some work so i can remove all the coming soon's
  • NuvoNuvo Forum Leader VPS - Virtual Prince of the Server
    If you haven't told PHP to change anything in the database, it shouldn't.
    I have never heard of this happening before and it's never happened to me.
    The only things I can think of would be a code error, which you pretty much ruled out, a problem with the server setup or someone has hacked your hosting account, but then they'd need to know when you run the script.
    PHP, CSS, XHTML, Delphi, Ruby on Rails & more.
    Current project: CMS Object.
    Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
    Release date: NEVER!!!
Sign In or Register to comment.