Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You need to add the code to your javascript. If you don't know how to write javascript, you need to either learn or hire someone to do it. If you make an effort, we can help you debug it. But you haven't written any code for this problem.
  2. Yeah I don't see any code that would generate SQL containing a "VALUES". All you have shown us is a SELECT.
  3. What doesn't work the way you expect? What debugging steps have you taken? Are you using Chrome developer tools or Firebug?
  4. Moving this since your question is not with specific code help.
  5. Check if that field has a string entered. Don't forget to include PHP validation on the backend, you can't rely on JS validation only.
  6. Google "MySQL JOIN". Looking at your code further you may not need to join them. Why would you store "kills" and "deaths" in a table called skillsoverall? Is that supposed to be KILLS not SKILLS?
  7. It depends on what you mean by "doesn't work", but it sounds like your live server doesn't have short tags enabled.
  8. Yeah, why do things the correct, easy way, when you could hack at it for weeks and come up with something that sort of works?
  9. https://www.google.com/search?q=mysql+automatic+date Please don't use PHP to set the date.
  10. You should still use a cron job. Determine how long ago someone had to have registered in order to be eligible to get tickets the next time, and update only users who registered before then.
  11. You'd need to use AJAX. Check out jquery
  12. A. Do one query, joining the tables B. see my signature on handling mysql errors
  13. You'd have to pass it to the method.
  14. Write to a file I guess. A database is the right way. Unless you only want it to be there for the time you're on the site, then you'd use a session. You didn't ask a very good question.
  15. You can test them on their own and compare the numbers.
  16. Store the comments in a database.
  17. Using FTP would be a lot less bother than using a browser visiting a PHP script. Are you looking for version control?
  18. For learning what a function does...
  19. http://www.php.net/manual/en/datetime.diff.php You'll probably want to switch to storing your dates in ISO format, YYYY-MM-DD.
  20. That is in fact what the manual is for.
  21. Really you probably don't need ANY of this at all. Why do you have a "new" column? Use the date...
  22. Uhm, you don't need to select the rows then do an update. You can just update them.
  23. If the form field is in the form it will be posted and if its empty it will be an empty string '' not truly empty. So you need to use strlen or other validation besides empty on your form fields.
  24. Probably, I didn't look at anything besides that one single = before coming back here. Give it a shot, it can't hurt to try.
  25. = is assignment. == is comparison.
×
×
  • 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.