Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Agreed. That is some terrible coding right there.
  2. I suggest you find out what framework it is your application is using and find a forum that supports it. The code you have posted isn't stock standard PHP.
  3. I would suggest that the best CMS to go with is likely the one you know best. Any CMS is quite capable of the functionality providing they are being setup by a developer in the know. Personally, I would be more inclined to go down the bespoke path, maybe starting with a CMS framework such as Symfony2 CMF. I guess it depends on your time frame and budget though.
  4. It is a fairly common approach yeah. Just so you know though, your not dealing with JavaScript arrays here, but simple objects.
  5. Hey doloreel, welcome. I'm from Sydney too, well, central coast anyway. I see programming as being very creative endeavour, and I know a lot of people who have had previous experience in different forms of art. I myself, was a musician in a previous life.
  6. Looks like your parameters table has gone missing. Do you have access to a shell on the server?
  7. And you have clients paying you to create these websites?
  8. You need a javascript array, not a php array.
  9. It's not just bad practice. The password function should never be used. It can change between mysql versions without warning breaking your data. Most "change password" page will also ask for the current password. You can use this to check the new password is indeed new, and then again, on the server side you can verify that they have indeed given you the correct old password. You should be able to google plenty of resources regarding storing passwords in mysql using php.
  10. If you don't want to load your data via ajax (which of course will incur a delay) you will need to load it all up front. I would suggest storing it in an array or json. Now, please stop posting javascript questions in the PHP Help forum. I'm starting to get tired of moving your threads.
  11. The error is pretty self explanatory. The user named "user" does not have permission to acces the mysql server hosted on localhost using no password.
  12. I don't understand that questions sorry. How are they "tied to a number" ? Another thing I don't understand is, why does your MemberTopic class extend ConnectMySQLClass? MemberTopic is quite obviously not a database connection type. The relationship makes no sense. A massive part of OOP is dealing with object relationships. This code does not describe these relationships at all well.
  13. A little off topic, but if you are using this code to learn OOP, don't. All those code will teach you is bad coding practices. Even at a glance there is some glaringly obvious poor design / coding decisions being made. Public properties, global variables and static methods everywhere. Forget you ever found this code.
  14. shell_exec executes code in a new shell process. Meaning, if you call cd, it only changes directory for that process. Any subsequent calls to shell_exec will be executed from the original directory. I don't see why you would be using php for this at all. Use bash, and your issues will go away.
  15. You'll want to Google "JavaScript pushstate"
  16. Just because it's popular doesn't mean it's well designed. Codeignitor is easy to use, and therefore has a pretty good following of people who are new to frameworks and don't know any better. From a design perspective, CI is absolute rubish. I know people who were at one point in time making all of there cash through building web sites on top of this platform. Even these guys (who were being flown around the world for work) have moved to other, more modern, better designed frameworks and are once again, making a killing.
  17. This is where using arrays comes in handy: $result['title_' . $lang]; What your trying to do is called variable variables and is far less efficient / easy to follow.
  18. Where exactly are you struck? You haven't asked any question.
  19. You have most of the bits required for this to work commented out.
  20. See http://forums.phpfreaks.com/topic/273121-readme-php-resources-faqs/?do=findComment&comment=1405508
×
×
  • 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.