Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. See IFNULL. http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html#function_ifnull
  2. This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=361628.0
  3. Really? If I was a client and found out I was being charged more because the developer was going to need to spend time learning the technology I would be looking for another developer. there are plenty of developers around who do know typo3, why pay someone who doesn't?
  4. The error tells you what the problem is. index.php is producing output on line 2. You cannot send any output to the browser prior to calling session_start().
  5. Better yet, add /home/user/public_html/awesome_app/views/assets/ you to your include_path and use: include 'init.inc.php';
  6. How the hell did I not even see that? Must be bed time.
  7. Remove the ; from after win()
  8. Have a look at the $_SERVER array.
  9. This is generally how people that are yet to understand OOP see OOP. It is far from the reality of it all though. Having said that, OOP is not some magic bullet, and it is not always necessary. Sorry you feel that way but we can only judge you by the impression you make on us. Have you actually tried instantiating that user class and calling get_name() ? What does it return? Nothing. Why, because you have to call set_name() first to give the $name property a value.
  10. No. You need to send email to email servers.
  11. Seriously? You have not provided enough code or context for anyone to be able to help you.
  12. Must have missed this: http://forums.phpfreaks.com/index.php?topic=361331.msg1709233#msg1709233
  13. $this->full_name is defined within getName(). It therefore wont exist until getName() is called. Your code is really quite all over the place and your using a lot of variables that aren't declared. You really should be defining all your variables at the top of your class.
  14. Your not calling the getName() method.
  15. This topic has been moved to Application Frameworks. http://forums.phpfreaks.com/index.php?topic=361393.0
  16. Where exactly are you stuck?
  17. In English please?
  18. <?php $names = file('/path/to/file/names.txt'); foreach ($names as $name) { echo '<iframe id="fr" src="http://www.youtube.com/subscribe_widget?p=' . $name . '" style="overflow: hidden; height: 105px; width: 300px; border: 0;" scrolling="no" frameBorder="0"></iframe>'; }
  19. ^hack
  20. Seriously, your going to need to provide more information than that.
  21. Firstly, if your function needs to return more than one value your likely doing too much within the function. Anyway, just return the arrays within an array. return array($a, $b, $c);
  22. Your using jQuery. Why are you still attaching events inline?
  23. Assuming this: $base->redirect('viewthread.php?forum='. $f .'&id='. $thread.'&goto='. $creation_id); sends a location header, it makes absolutely no sense to have it placed after output has been sent to the browser.
  24. There is nothing new about them.
  25. str_replace.
×
×
  • 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.