Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I hope you're joking. I believe Google has a webmaster tool that will generate this for you.
  2. Yes that will work, but not sure how variant your numbers will be. You can just check to see if a value is in the array, for example: $arr = array(1,2,3); if(in_array(1, $arr)) { echo "true"; } ?>
  3. An array?
  4. Maq

    Web Crawling

    That's a relative term, it could actually be illegal depending on what exactly you're doing.
  5. Maq

    Web Crawling

    I don't believe it is either, but the fact remains that this is usually used for illegal intent. He explained that multiple times already... Ok, so what do you keep crying about? Because trying to bypass security protocols and IP spoofing usually results in something illegal (if not already).
  6. Go to the PHP Regex section and search for "email". There are threads already on this that can help you. You can come back with any questions.
  7. I don't know what else to say, this should work: SELECT * FROM chat ORDER BY timestamp DESC LIMIT 10 You could try this, which should be just as reliable: SELECT * FROM chat ORDER BY id DESC LIMIT 10
  8. ... SELECT * FROM chat ORDER BY timestamp DESC LIMIT 10 AND SELECT * FROM chat ORDER BY timestamp LIMIT 10 Should not both bring back the same first 10 records. Can I see a sample record from your table?
  9. Then take out DESC.
  10. Take out the first '0' after your LIMIT clause.
  11. Maq

    Web Crawling

    Of course they can, you're connecting to their server.
  12. Are you sure?
  13. You should really TIMESTAMP your entries. There's no reason not to... Assuming the greatest 5 ID's would give you the latest 5 entries: Select Sports FROM table GROUP BY Sports ORDER BY ID DESC LIMIT 5
  14. Assuming you're referring to PHP - date and strtotime. Are your dates stored in the database as 'DATE' or 'TIMESTAMP'?
  15. Someone needs to start a blog...
  16. Can you post exactly what the error says?
  17. You can easily find solid answers with Google. - Delphi for PHP
  18. Is this line 33? include("$botlist.php"); The variable $botlist isn't defined here, I think you meant just, "botlist.php". Try changing this include, it should get rid of all the other errors. Yes, implode only takes an array and an optional string. Read more here - implode.
  19. Maq

    HCwDB

    Get your mind out of the gutter!
  20. I would advise against that, instead you should use underscores. If you need spaces for some reason, then yes, I believe adding back ticks around your table name would allow spaces. NOTE - You will have to use back ticks every time you reference this table.
  21. Removes all whitespace, including tabs and newlines. $string = preg_replace('/\s+/', '', $string);
  22. Use backticks NOT single quotes to escape field names. `desc`
  23. Have a read here - Strings. And you should also have a read on another affiliating topic - PHP Interpolation.
  24. So you want to rewrite your URL so that it only displays the characters before the ".php"? That would be a mod_rewrite, which can be found here: mod_rewrite. That's a problem with the href that you are creating. Have you tried any of the previous suggestions?
×
×
  • 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.