Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. We have an introduction section, I'll move it there. Oh, and welcome!
  2. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=341054.0
  3. ORDER BY
  4. Please show us the relevant code.
  5. Do a search for 'ajax chat' and you will see a few good ones.
  6. Have only played briefly but one of my co-workers has his own minecraft server with a couple different worlds/maps. When I have time to game I usually play COD. A while back I saw someone create a map based off of the game portal.
  7. I go to the gym in the morning, workout 30-1 hour (depending on what I'm doing) and arrive at work around 9-930. I like getting it out of the way and I feel better about myself the rest of the day.
  8. As mentioned before, read thorpe's reply. There is even a link to the manual that explains exactly what this function does and how it solves your SQL issue. "mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a. "
  9. While we appreciate your solution, this thread is over 2 1/2 years old, please don't resurrect threads.
  10. There are a few reason how and why an object is null. After you provide the code we can take a look.
  11. Show us the relevant code. If you can't pinpoint it, then run in debug mode.
  12. As TLG said, that error usually indicates your query is returning false, which means your query is failing. When you setup your new PC did you import all the previous databases?
  13. Let's start by posting your errors.
  14. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=340950.0
  15. Maq

    htaccess

    Colon.
  16. Maq

    htaccess

    Hmm seems like this link is broken. I'll try and see if there is a updated one. http://www.ilovejackdaniels.com/mod_rewrite_cheat_sheet.png
  17. It's case sensitive. Call is not the same as call.
  18. Thank you, here is the message: array(1) { ["reminder"]=> string( "thisyear" } No conditions metQuerywas empty GET is an HTTP request, that means your URL should look something like: www.mysite.com?reminder=thisyear&type=email
  19. Please read what you wrote here. You added these 2 conditions, if the elseif is not executing then it's b/c of one or both of these. isset($_GET['type']) && in_array($_GET['type'], array('Call', 'Email')) Now, var_dump($_GET); so we can see what the value of 'type' is and figure out what part is not evaluating to true.
  20. I would also suggest an 'else' statement in case you don't match anything. Otherwise, you're going to run into the problem you have now.
  21. Maq

    htaccess

    You can do it with mod_rewrite, I'll move it there.
  22. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=340683.0
  23. Then one of these conditions is not true. ($_GET['reminder'] == 'thisyear' && isset($_GET['type']) && in_array($_GET['type'], array('Call', 'Email'))) { Do a var_dump($_GET); and post the output.
  24. It means your $query string is empty, aka your elseif block is not being executed.
  25. Did you put the or die() here? $result=mysql_query($query) or die(mysql_error());
×
×
  • 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.