Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Workbench is really nice, I've only used it briefly but everyone says positive things about it and it has everything you need. DIA looks interesting, I'll have to check it out.
  2. Most languages have a naming convention that you should adopt. The benefits seem small but will help more than you think. Here is a list of benefits: http://en.wikipedia.org/wiki/Naming_convention_%28programming%29#Potential_benefits
  3. A foreach will give you a bit more flexibility, just something to think about.
  4. You can use ev... oh wait, nvm.
  5. Do a simple check: $letters = array('a','b','c'); foreach($letters as $letter) { echo (end($letters)==$letter) ? $letter : "$letter "; }
  6. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=327615.0
  7. Your query will ultimately look like: SELECT * FROM USERS WHERE Username='' or 1=1--'" See anything wrong with that?
  8. More like each row in a result set. It sets $row to the next row (assuming it exists) which is actually an associative array when using mysql_fetch_assoc.
  9. Maq

    wrong value

    Use tags in the future.
  10. And when posting code please use tags.
  11. Basically, from the manual:
  12. Use tags in the future.
  13. So this is solved?
  14. If you still can't get it to work, posting example data would help.
  15. Do you just want to see if the string exists in the file? If so, you would use something like: $filename = 'example.txt'; $searchfor = 'hello'; $file = file_get_contents($filename); if(strpos($file, $searchfor)) { echo "String found"; } ?>
  16. The easiest way is to explode the result in PHP and count the number of elements in the array, not so sure that's the most efficient. I'm also not sure there is an elegant way to do it in SQL. Did a quick search and found a couple hacky solutions.
  17. As Ken pointed out, do not double post. I deleted your duplicate, don't do it again.
  18. Hi Andy, welcome to the community!
  19. He probably intends to put content in there It's fairly common to have large footers these days, i.e.: http://codecanyon.net/
  20. I don't understand why they make it so obvious, at least try to disguise it as a personally project or something.
  21. 1) You posted in the wrong section. Be conscious in the future. 2) We don't do homework for people. 3) You haven't shown any attempt...
  22. Maq

    if statement

    Oh, haha. Yes it is. These two lines temporarily set error reporting to display and to the maximum.
  23. Maq

    if statement

    No, it's a question. Is it supposed to be "address_l1" or "address_11"?
  24. Maq

    if statement

    Where's $User['address_l1']; defined?
  25. You're gett Nevermind for your last post, or nevermind it's working?
×
×
  • 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.