Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You need to pass $conn to mysqli_error() so that it will work. You might want to turn error reporting on also because not passing $conn to mysqli_error() should have generated a php error.
  2. You could (and should) use preg_match to match a pattern instead of exploding on a period.
  3. You should be looking for tutorials that teach you how to program, not how to do some specific task. Once you you know how to program, and can think, you wont need tutorials.
  4. Have you thought about asking the developer who wrote the code?
  5. Instead of returning html from your request return just the data as a json object. Using json, you can then update whatever you need client side.
  6. Sounds like you are trying to run before you learn to walk. Have you searched for any tutorials on the subject you are stuck with? We are here to help with code.
  7. trq

    memcache

    If php -m does not list memcache the extension is not installed.
  8. You are of course submitting the form?
  9. If that were the case all Wordpress sites would grind to a halt. You haven't provided enough information for us to answer your question.
  10. There is no such thing.
  11. The location header requires a complete url. That is: http://somedomain.com/somefile?foo=bar
  12. Why would you need to know what your variable is named?
  13. We can't really help without seeing the relevant config.
  14. If I understand you correctly yes.
  15. The data you have has nothing at all to do with cookies. Anyway, I would suggest making a table that replicates this structure. From there it would be simple to write an INSERT query to store your data.
  16. Variables are not interpolated within single quotes.
  17. Where are you getting the term "cookie data" from? It doesn't really make any sense in the context of this topic. Anyway, do you know how to connect to and query a database? All you need do is execute an INSERT statement that stores the data you have. What format is your data in?
  18. Indeed. Those API's also have documentation. The reason your question hasn't had a look in is because you have obviously made little effort to research the topic yourself. You need to be specific about where it is exactly you are stuck.
  19. Remove the error suppressors so that you might actually see the proper error.
  20. trq

    Please Help

    Did you actually read the topic of this board before posting?
  21. If all your function does is md5 the variable your passing to it, then it is useless, that is exactly what md5() already does, just use that. You pass variables into functions when you call them so you have complete control about the data they operate on.
  22. Functions are simple, what part exactly do you not understand? Also, you don't need a custom function for this. md5 already exists and does what you want already.
  23. trq

    PHP Micro-Frameworks

    Silex (http://silex.sensiolabs.org) is an awesome micro-framework built on the shoulders of Symfony (another great though full stack framework).
  24. This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
  25. My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.
×
×
  • 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.