Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Hi Angelo, welcome to PHPFreaks. That's a lot of experience, good luck with everything.
  2. I was told that you can do if/else functions without braces, they said it could be an improvement for code. o.O That only works if you want the block to only include the first line directly below it. It will throw a fatal error if you run it the way your blocks are set up.
  3. You would do something like this: else { include_once('functions.php'); $content_return = OverallGrabInfo($_COOKIE['user']); $welcome = 'Welcome, '. $_COOKIE['user'] .'!' . $content_return; } FYI, your IF/ELSE blocks in your function are missing braces.
  4. What happens to banned accounts, eventually? The badgers eat them.
  5. Here's a list of all of them: http://en.wikipedia.org/wiki/Google%27s_hoaxes
  6. No, that's real, you're missing out....
  7. Yes. You use functions all the time. mysql_query(...) is a function. Trust me, you wouldn't want to write that code every time. Native functions are used to reduce code, so are custom ones. Because, unless you have a very specific question, then there are literally thousands of results for "PHP, why use functions?", and therefore, wasting our time.
  8. Please, you can easily Google this for more reasons. Calling functions helps you not repeat code.
  9. @vic, please use tags NOT the tags.
  10. Yes, people actually make a living on short selling.
  11. Maq

    PHPLINQ

    I've never tried it so I can't comment on the amount of overhead, but it's nice when MS wants to get into open source projects.
  12. No problem, we all start somewhere. In the future, please use tags around your code.
  13. You need quotes around your return values.
  14. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=329322.0
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=329328.0
  16. This belongs in "PHP Coding Help", NOT "Server Administration". Moving.
  17. Maq

    :: Syntax Error

    FYI, here's the list: http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html
  18. Hi Carlos, welcome to PHPFreaks.
  19. Happy bday! Welcome to the community.
  20. From what I understand you might want to create a customer_id column in the ORDERS table so you can relate it to the CUSTOMER table for more specific information. Many to 1 relationship.
  21. Seems more of a SQL question rather than PHP, moving.
  22. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=328845.0
  23. From what I understand, yes, you are correct. To be sure, run it a few times with/out the WHERE clause and do a time comparison.
  24. Ah, you're referring to the news. It's randomized so you only see it sometimes. Anyway, here is the link to the Rules/ToS: http://www.phpfreaks.com/page/rules-and-terms-of-service
×
×
  • 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.