Jump to content
MakeWebGames

Block MySQL Query's


Recommended Posts

Hello.

Is there suck a thing that you could add to you script that you could block certain MySQL querys from other parts of your script?

I know this sound stupid, but its linking to Players disappearing? Here's why!. ANd I cant seem to find where in my script this is.

Probally sounds stupid, but just delete this thread if there is no suck thing ;(

Link to comment
Share on other sites

nonnono

Im saying, my game has about 1 million files, and I dont have the patience to look through everyone of them for delete user querys.

i want to put some sort of php script that will block any of the specified MySQl querys from running.

A bit strange, yea i know XD

Link to comment
Share on other sites

well i usuly never delete any data unless i have to ... i do this by adding a field in the table called deleted and in the query i add AND `deleted`=0 and if you want it not visable you udate it to 1.

you have to weigh the pros and cons do you want your userbase deleted or a few more rows in your tables

Link to comment
Share on other sites

I'm not going to lie, yes it could be done - to write an piece of code that will prevent certain mysql queries(using an pattern based search).

I would rather just suggest setting the correct permissions for your mysql user and the database it is connecting to. Other than that, just make sure your own queries you pass to the database is solid and not able to flex via some sort of script malfunction(aka. a bug or loophole).

Link to comment
Share on other sites

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.   Paste as plain text instead

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