Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Can you post just the current $query line?
  2. Have you tried asking on their forums? https://www.sugarcrm.com/forums/
  3. I'm suggesting having 2 tables: state_info abbrev name territory territory_info abbrev territory so in your drop down list you will query the territory_info table and have a list of the 'abbrev's. Then when you want to find the states you join the tables and grab the states with that territory's 'abbrev'.
  4. Why don't you use a database? That way, it's easier to maintain and is more flexible for adding additional information, instead of hard-coding this information.
  5. I'll be purchasing SCII for sure.
  6. http://us2.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members Right, but what's the point of disrupting the naming conventions? It just makes everything confusing especially if other people are working with your code. Also, your method name "outputContents()" isn't an accurate name. You're returning (getting) $contents, not outputting it...
  7. You need another table to store this sort of team information. Then you can join the tables on the team id and look up whatever information you need.
  8. You should be temporarily storing this in a session variable and in the database. That's what these features were made for.
  9. I agree. Spain did a deserving job. I was actually in Spain for vacation and got to watch the 2 of preceding games from the world cup there, Paraguy and Germany, and coming from an American, it was a great experience. Complete insanity.
  10. I prefer PC gaming but I have an XBox along with most of my friends so I'm on that most of the time. That's only until Starcraft II comes out...
  11. Anyone who has been to the gym can relate to this, absolutely hilarious:
  12. Hmm, according to this and many other statistics, AOL isn't even listed so it must be less than .73%. IMO, it's not worth it.
  13. In OOP you can get/set values from objects with accessors methods.
  14. Sorry this isn't helpful, but don't support AOL Explorer, no one uses it.
  15. http://www.phpfreaks.com/tutorials
  16. Why do you think it's incorrect?
  17. Didn't test this, but it should give you an idea. Let me know if you have questions. SELECT t2.id, t2.m_id, COUNT(t2.m_id) AS c FROM tbl1 t1 LEFT JOIN tbl2 t2 ON t1.m_id = t2.m_id WHERE t1.active=0 GROUP BY t2.m_id ORDER BY c DESC;
  18. Yep, there's probably 10 different ways to do this just depends on how you want to accomplish it.
  19. Try running it with the IE JS debugger on. You can probably run this in FF with firebug on to see if there's and error that is only fatal in IE.
  20. Try this: $s = array("blah.", "blah blah.", "more blah."); $rand = array_rand($s); echo $s[$rand]; ?>
  21. You set $db but never define it. So trying to invoke the query() method from a null global variable doesn't make much sense.
  22. http://us2.php.net/manual/en/language.oop5.basic.php
  23. Why are you echoing your HTML out? It would be easier to read if you just wrote it as HTML. You should have quotes around attributes values. Your Gender option has 2 values of 'male'. The second should be female. And what kickstart said
  24. You do realize the last post was over 7 months ago?
×
×
  • 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.