Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,124
  • Joined

  • Last visited

  • Days Won

    144

Everything posted by Magictallguy

  1. Ya know; if you used the code tags built into the forum, you'd see your markup was broken.
  2. I remember experiencing this issue before in multiple other engines and almost every case came down to sessions. There was one or two cases where a token was being set before it was processed (invalidating the expected key before we could touch it) - check for duplicate calls to MCCv2's CSRF token generation function
  3. I work for a small number of sites on the same host and have not experienced this issue. Check your session handling
  4. Magictallguy

    jQuery

  5. Magictallguy

    jQuery

    ID DON'T NEED #! AAAAAAAAAA
  6. Magictallguy

    jQuery

    Put id="php__container" back into the div from which you removed it. Change the <a> tag id attributes - they don't need an octothorpe and they must be unique
  7. Magictallguy

    jQuery

    Restore the php__container ID to that div and alter your anchor IDs
  8. The .com was unavailable at the time
  9. Which kinda negates the point of a database.
  10. Ah, I see. Thinking scalability now; a simple boolean flag for "in use" is fine if you only have 1 non-standard use for an item. But what if, in the future, you decide to add something else that could also make use of the "in use" boolean? I can see that getting confusing to manage and potentially giving unexpected/unwanted results with the conflict. So, to keep with logic, you'd just add another bool, right? How many booleans are you going to be ultimately adding until moving data to a separate table just makes more sense? I'm not knocking your approach, in fact I quite like it. I merely wish to point out a potential flaw to future designs
  11. What about higher quantities? Your idea of setting a bool directly on inventory would work for single items, but quantities would be much harder to handle
  12. Could add checkboxes to your creation form, along with relevant columns to the items table - select, on item creation, where the item can be listed (if at all)
  13. No. Prepared Statements do not secure your data any more than a standard query would. It is on the developer (namely you) to use the functionality as intended. The most obvious difference (when coding) between PDO and, say, MySQLi is that using Prepared Statements negates the requirement for escaping data. Another benefit of PDO is that it isn't limited to the MySQL(i) driver; it can support 12 different DB drivers (at the time of writing) - which makes it highly adaptable and extensible. Use either properly and you should be good to go.
  14. I believe last month's top player would disagree with your speculation
  15. There's very little point in using prepared statements if you're not preparing them. I'm definitely against this method
  16. All of these effects can be obtained through other methods available in game.
  17. YourMafia. While credits can be purchased with USD, it is not a requirement. In fact, last month's top player was a non-donator. The only "unique" items available are vanity items, offering no bonus over anything else that can be obtained while playing without paying. It keeps itself afloat. You were saying?
  18. Dayo pinned it 😕
  19. Alright guys, gals, and everything in between! All together now! And 1.. 2.. 3.. Yay Sim! Go Sim for doing the thing! Where's the band?! Start the fanfare! Edit: Found the band https://music.youtube.com/watch?v=wA-NRyWoYII
  20. Does "income from writing games for other people" count?
  21. Started writing a response (good things, I promise), decided it'd be better via DM
  22. I'm already writing them 🙂
  23. Speaking in a broader sense than GL; Why pass 50+ arrays when you can pass 1 multi-dimensional array? Make it easier on yourself at runtime!
  24. If you're manually passing 50+ arrays to something, you've missed the point of arrays
  25. Reppin' that NPC energy man ;)
×
×
  • Create New...