Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. I'll second PHP Objects Patterns & Practice. An awesome intro into OOP and Design Patterns.
  2. That's not what you asked. $_SERVER['DOCUMENT_ROOT'] . '/../'; Should achieve what you are after.
  3. echo $newInterestSubs->interest_sub."\n";
  4. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=323781.0
  5. Move your server root to C:/xampp/
  6. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=323684.0
  7. What exactly is all the other stuff in page_header for? It doesn't do anything. I think you need to simplify the entire process then slowly build it up to whatever you need.
  8. Actually, another look at your code and there is stuff pretty much all over the place. Firstly, dbConnect should not extend siteConfig, they are in no way related. Secondly, your construct in dbConnect does not return a connection. If you follow the advice in my other reply it doesn't need to. Finally, getConfig() doesn't return anything.
  9. Firstly, this.... $link = mysql_connect('localhost', 'user', 'pass'); Should be.... $this->link = mysql_connect('localhost', 'user', 'pass'); Then, the arguments passed here are in the wrong order..... mysql_query($this->link, $query);
  10. Somewhere along the line you must be including header.php into your code instead of (or as well as) using the render method to do so.
  11. Not particularly. I know my simple example works, and I don't really see why yours doesn't. What is the exact error your getting?
  12. It's pretty hard to tell what's going on with all those global vars.
  13. trq

    php editor

    See http://www.phpfreaks.com/forums/miscellaneous/which-php-editor-do-you-think-is-the-best-(v2)
  14. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=323563.0
  15. No. How about instead of asking all these questions over and over you take a look at what can be done in php? http://php.net/oop
  16. This forum is open source software. http://www.simplemachines.org/
  17. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=323503.0
  18. You would need to include page1.php wherever you need it.
  19. There is already a function in php called readfile, you will need to change the name of yours to something else.
  20. That depends entirely on your skill level, I would say yes though. As for the rest of your post, do you have a question?
  21. PHP does not care about being inside or outside of <html></html> tags. As for the rest, no, it doesn't make allot of sense.
  22. echo $arr['game']['name'] Wherer $arr is your array.
  23. Your not making allot of sense. PHP needs to be interpreted by it's parser which is an extension to a web server. Hence php needs a web server to work.
×
×
  • 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.