Jump to content
MakeWebGames

Vortex

Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Vortex's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Vortex

    PHP Form issue

    Re: PHP Form issue Try adding another hidden field, with a hash (md5/sha1/sha256 etc) of the username AND the session_id() (and optionally, another "salt"). That way you can easily verify the hidden username field has not been tampered with.
  2. Re: [mccode] another sql protection to help Using mysql_real_escape_string() in this way can still be subverted, permitting injection of unwarranted SQL. Consider where MySQL comes from...
  3. Re: {REQUEST}Mccode Duping... As was pointed out, "SQL duping" is an inaccurate term. Try looking up "why use transactions". Quoting from the first hit I found:   The last part of this - I'm not 100% convinced is accurate. Atomic writes, by their very nature, must be atomic. I've certainly never come across a situation where they have not been (assuming a single server architecture). Transactions are easy enough once you get your head around them, however taking the initial step can be confusing. A lot of basic mistakes are made by people initially when experimenting with them, indeed, I still do from time to time. One nasty effect visible from scripting languages is what happens if you cannot control script termination. If you fail to let the script run fully over a transaction block, then you run the risk of having invalid data states - a situtation which is never good. Saying that, using simple exception handlers and forcing scripts to run to completion - or better yet, stored procedures is far better in my opinion. There are - as pointed out - alternatives, simple locking *can* be effective, but again script completion here is important as is using threaded timeouts for resource (lock) allocation. MySQL Transactional and Locking Statements (MySQL documentation)
  4. Re: {REQUEST}Mccode Duping... Try using a transaction safe database.
  5. Re: Help Check your DOCTYPE
  6. Re: Making support for special characters? Consider the use of meta tags - specifically:   <meta http-equiv="Content-Language" content="Swedish" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   It may be prudent to set the collation of the database to latin_swedish_ci as well, but I advise extreme caution here. Mixing collations, character sets etc. can prove tricky.
  7. Re: Need base code to work off.   for ($i = 0; $i < 5; $i++) { echo $i . " "; }   Outputs 0 1 2 3 4   See: control-structures.for
×
×
  • Create New...