Jump to content

ManiacDan

Staff Alumni
  • Posts

    2,604
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by ManiacDan

  1. Wrap an outer query around this: SELECT * FROM (SELECT @whatever_up_there) Foo LIMIT 11,10
  2. The time is not unique either, if the form has two file uploads, they'll be processed in the same second. "Use microtime" you'd say. uniqid() is designed to solve this problem.
  3. The code you're using relies on features only available in the newest version of PHP. Your code is not backwards-compatible, so you have to either stop using it or upgrade. Simply removing the namespaces is probably too difficult.
  4. Don't use that solution, it's not unique. Use mine.
  5. Don't bother counting hours, just do: if ( date('H') < 15 ) { echo $days + 1; } else { echo $days; } Your question is just "I have the right number most of the day, but after 3pm I want it to be one less." Don't bother adding hours calculations into your function, just make it one less after 3pm.
  6. Yeah, we need more information. Before/after, some examples, something.
  7. See where you take $name from the file info?
  8. I'm not really sure how you can get to 900 posts without knowing how to echo. Learning HTML is a very critical step to knowing web development.
  9. "I NEED GET LIKE THIS" Translation: Similar to this, but with extra information which fundamentally changes the nature of the query
  10. if URL_T is the URL field: <td><a href="<?php echo $record['url_t'];?>">click here</a></td>
  11. Is the field named "decimal"?
  12. Im got no idea what you're talking about. Show what your tables look like, give us 6 rows of example data from each table. Show what your desired result looks like.
  13. They don't make movies about accountants, actuaries, HR representatives, or file clerks either. What we do isn't fun to watch.
  14. You didn't say anything about a webserver.
  15. Hi, please go read my post a little more, it contains an answer as well as an explanation of why your post cannot be answered (despite me answering it)
  16. Take the code you have, and if today is a business day, add 1 to your result.
  17. Not only did I warn you about this already, I answered this stupid question on devshed half an hour ago. Since this question is not necessarily nefarious, I gave him a real answer (Snoopy)
  18. Instead of taking $name from the file info, give it a new name. uniqid produces a unique string.
  19. That thorpe meant is that your example code of what you want makes no sense at all, you say you want to echo a string lowercase with no spaces, then show how to access an array key using a key which is lowercase with no spaces, then show code which echoes the key (instead of using it as an array key) while simultaneously overwriting the array you showed in your first example.
  20. echo strtolower(str_replace(' ', '', $data['text_skill_one'])); Maybe. Who knows. Your examples conflict.
  21. He wants to eliminate ENTIRE COLUMNS where the whole column is null.
  22. You're correct, I was thinking there was a bare dot in the pattern. Congrats, btw.
  23. Mitnick's book, The Art of Deception, is really good.
  24. You're going to have to rewrite this in English, this makes no sense at all. Taking a complete shot in the dark: SELECT DISTINCT
  25. I see a privacy policy link right there in your code, why do you believe it's not showing up right? Did your host not accept the files? Are you clearing your browser cache?
×
×
  • 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.