Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Zend_Form. It can be used independently of the framework.
  2. lol... it appears that the the way the modification we use checks whether a topic is solved or not is by checking whether the subject starts with [sOLVED] Anyways, SELECT ( SELECT COUNT(smf_messages.ID_MSG) FROM smf_messages INNER JOIN smf_topics ON smf_messages.ID_MSG = smf_topics.ID_FIRST_MSG WHERE SUBSTR(smf_messages.subject, 1, = '[sOLVED]' ) / COUNT(ID_TOPIC) AS topics_solved_pct FROM smf_topics; Gives you 0.1806, i.e. 18.06%.
  3. I say you and I start that business. We'd be innovators I bet we could earn big bucks.
  4. As effigy said, what charset do you use when storing the data in the database?
  5. You could probably build a robot and make it's AI controlled by PHP. I don't know how though ;P
  6. The answer to a such question is almost always "yes".
  7. Daniel0

    school

    http://64.233.183.104/search?q=cache%3Ahttp%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGymnasium_(Denmark)&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a They probably don't block Google.
  8. Daniel0

    school

    http://en.wikipedia.org/wiki/Gymnasium_(Denmark), second year Compare it to whatever school system you're used to.
  9. Daniel0

    school

    Well, those tests take five hours each. It would probably be a bit too much doing tests for 10 hours straight
  10. Daniel0

    school

    Just had a Danish written test yesterday, English today, Spanish tomorrow
  11. Or perhaps you don't have the font that is used. It's using Arial, I can't remember if that ships with Ubuntu.
  12. That's exactly the same...
  13. How doesn't it work? Have you setup your hosts file to make test.localhost go to 127.0.0.1?
  14. Try to post the virtual host part of your Apache configuration file.
  15. <h2 class="main"><span>Roster</span></h2> <div class="cbox roster"> <div style="text-align: center;"> <? $q = mysql_query("SELECT * FROM `roster` ORDER BY `team` DESC"); $members = mysql_num_rows($q); if($members) { ?> <table cellspacing="0" class="full"> <? $i = 0; $team = ""; while($r = mysql_fetch_array($q)) { $names = array_map('ucwords', explode(' ', $r['name'])); $name = "{$names[0]} \"" . ucwords($r['nickname']) . "\" {$names[1]}"; $i += 1; if(file_exists("images/roster/".$r['id'].$r['filetype'])) { $pic = "images/roster/".$r['id'].$r['filetype']; } else { $pic = "images/roster/blankpic.jpg"; } if($team != $r['team']) { $team = $r['team']; ?> <tr> <td colspan="3" class="teamdivider"><?=$team?></td> </tr> <? } ?> <tr class="row<?=($i&1)?>"> <td><img src="<?=$pic?>" width="50" alt="" /></td> <td style="text-align: left;"> <a href="index.php?p=profile&pid=<?=$r['id']?>"> <?= $name ?> </a> </td> </tr> <? } echo "</table>"; } else { echo "<p>We have no players on the roster yet!</p>"; } ?> </div> </div>
  16. I just tried... <?php $r['name'] = "justin beos"; $r['nickname'] = "powda"; $names = array_map('ucwords', explode(' ', $r['name'])); $name = "{$names[0]} \"" . ucwords($r['nickname']) . "\" {$names[1]}"; echo $name; ?> outputs: Justin "Powda" Beos Is that not what you wanted? In what way doesn't it work?
  17. Ok. Another time, please don't modify the post after people have responded. You can do this (not tested): $names = array_map('ucwords', explode(' ', $r['name'])); $name = "{$names[0]} \"" . ucwords($r['nickname']) . "\" {$names[1]}";
  18. How would you ever get Justin Beos Powda to become george "killa" bush? ???
  19. Locked for the reasons stated by xoligy. Still the same issue as far as I can see. You're unable to connect.
  20. When saving it (use save for web), you need to save it in either GIF or PNG and you will have to tick the transparency option.
  21. Me too. I'm especially looking forward to 5.3's namespace support.
  22. That would probably be the easiest solution. Have a forum where only new topics (no replies) can be made and have staff promote them to the main site if they're good enough. If people are up for that, then I can easily set that up. I just need to give staff a way of setting the author of the tutorial to someone else than themselves.
  23. Edit: On second thought, you will have to wait for PHP 5.3's late static bindings.
  24. What does $statement->bind_param('ii', $this->skip, $this->numberRows); do?
  25. What kind of retarded legislators would ever pass a such law? It's outright ridiculous. I understand they want to protect the people against terrorists and what not, but it shouldn't be by restricting people's rights and by restricting scientific works/research.
×
×
  • 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.