Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Each column is designed to hold one value in a database. You need a new column.
  2. See the examples on this page: mysql_fetch_assoc.
  3. You might want to post a link to your site if you can.
  4. Whatever, this thread has been dragged way off topic as far as I can see. Why would I have a "personal issue" with a design pattern? I have issue with it's misuse.
  5. What exactly would you classify as a drop down box? What is it meant to look like?
  6. Assuming you have stored a 'logged in' flag in the $_SESSION array when your users log in, it would be something like.... if (isset($_SESSION['isLogged'])) { // show form }
  7. As I pointed out, the singleton is a particularly evil pattern and should be used sparingly. Recommend someone learn it and stating "it is OOP" is misleading at worst. These days, the singleton is considered somewhat of an anti-pattern because of it's blatant misuse. It's also probably the simplest pattern around so I don;t see how it's a "great learning experience".
  8. If your developing on Linux just install the ssmtp package. It is a sendmail drop in replacement that is simple to configure and allows you to use a remote smtp server 9such as Gmail) to send mail. This is awesome for testing purposes.
  9. Check if the user is logged in and if so display your form, otherwise don't.
  10. How should we know? You might want to post some relevant code.
  11. No, functions are not global. You will need to include modlogs.php into modlogs1.php if you plan on using code from within it.
  12. Have you looked at Google's API's?
  13. The code you have posted works fine for me.
  14. Sorry, but this statement is absolute BS. A singleton is one of many design patterns. Just because you start using singletons does not mean your code is well designed OOP. In fact the singleton is also one of the patterns that should be avoided as much as possible as it can break encapsulation if not used properly.
  15. It hasn't changed. Generally, it's a good idea to have . on your include path.
  16. trq

    PDF on website

    This has what to do with HTML?
  17. No. But there are plenty of methods around for creating what looks like a popup but isn't really.
  18. They both do exactly the same thing in the end.
  19. Your markup (html, css etc etc) should be as far removed from PHP as possible.
  20. Your markup should be completely separate to your business logic.
  21. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=355401.0
×
×
  • 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.