Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=356988.0
  2. Awesome. It's not php, hence your error.
  3. Show us what is being output.
  4. The code you have posted isn't even php.
  5. Having it within a loop makes no difference. What is the issue you are having?
  6. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=357315.0
  7. $(".frame").slice(i,i+1).css({"top": (-798 * i) + "px","left": (102 * i + 3) + "px","z-index":"-1", "height":"380px", "width":"180px"});
  8. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=357314.0
  9. There will be a short delay, but it is usually workable. ANother option would be to populate these drop downs from an array of data. Thus eliminating the need for Ajax at all.
  10. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=357281.0
  11. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=357263.0
  12. cron is indeed the best approach.
  13. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=357232.0
  14. There is no such thing as a good *free* host. You get what you pay for.
  15. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=357227.0
  16. You have numerous issues. The first is that your not very good at asking for help. mysql_query will return true if your query succeeds. Just because your query has succeeded however, does not meen it found any data. You need to use mysql_num_rows. That is the only help I am going to offer.
  17. Pass the database object into the construct of the user object.
  18. Define "not working properly". And please, we have tags to use when posting code.
  19. A *user* is not a *type* of database so the relationship makes no sense. A user might depend on a database, but that is as far as the relationship should stretch. As for your issue: Firstly, you reference methods and properties declared within a parent class using $this not parent. Just as you would any local method or property. The only time you need to use *parent* is when you are overriding a parents method and within that child method you need to call the original parent method. Secondly, you have not implemented the child __construct in such a mannor that you will be able to create a database object. These two points are mute however as like I already stated, user should not be extending database.
  20. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=357211.0
  21. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=357217.0
  22. My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.
  23. Have you tried an IDE? I used to think a simple text editor was all I needed too, but then I tried an IDE. The only time I use a regular text editor now is just for real quick edits, or stuff that I don't want to make into a project in my IDE. IDE's tend to get in my way. All I use is vim with a few plugins: https://github.com/tpope/vim-pathogen https://github.com/tpope/vim-fugitive https://github.com/tpope/vim-unimpaired https://github.com/vim-scripts/taglist.vim https://github.com/vim-scripts/sessionman.vim https://github.com/vim-scripts/bufexplorer.zip https://github.com/tpope/vim-surround https://github.com/vim-scripts/FuzzyFinder
×
×
  • 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.