www.webdeveloper.com

Search:

Type: Posts; User: NogDog

Page 1 of 20 1 2 3 4

Search: Search took 0.41 seconds.

  1. Replies
    2
    Views
    222

    You never have to use a framework: you use...

    You never have to use a framework: you use if/when you believe it will help you make your application in the most cost-effective and robust manner, including ease of maintenance. You say you are not...
  2. Replies
    1
    Views
    245

    I think your second concept provides a more...

    I think your second concept provides a more semantically meaningful mark-up, though wrapping a <div> around a <ul> is redundant. I might be inclined to do something like:

    ...
  3. Replies
    2
    Views
    297

    I don't know that I have the will to solve this,...

    I don't know that I have the will to solve this, but just curious: what does "undirected" mean in this context? Also, do the total possibilities include mirror images and/or rotational symmetry (e.g....
  4. Replies
    1
    Views
    244

    You want to use a plain text editor, not...

    You want to use a plain text editor, not something that is a WYWIWYG editor. I'm not an Apple user, so don't know what your built-in options are (e.g. the Mac equivalent to Windows Notepad), but...
  5. Thread: What is SEO?

    by NogDog
    Replies
    3
    Views
    461

    http://lmgtfy.com/?q=what+is+seo

    http://lmgtfy.com/?q=what+is+seo
  6. And once again, it's amazing what you could have...

    And once again, it's amazing what you could have found out simply by trying this URL: http://php.net/cookie
  7. Replies
    2
    Views
    292

    Looks like you left out the closing "}" for your...

    Looks like you left out the closing "}" for your first isset() if block. This is one of the reasons good programmers indent their code rigorously and consistently, so that such things are easier to...
  8. Replies
    5
    Views
    340

    Here's a tip that will both save you time and...

    Here's a tip that will both save you time and help you learn: you can find the official documentation of any PHP function by this URL format:

    http://php.net/unset

    http://php.net/session_destroy
  9. Replies
    1
    Views
    257

    There's no way for us to tell just from that...

    There's no way for us to tell just from that error message what the actual root cause of the problem is. You could check your PHP error logs, you might turn on a higher level of error-reporting, or...
  10. Replies
    5
    Views
    340

    If you want to make sure the session cookie,...

    If you want to make sure the session cookie, $_SESSION array, and session data are all terminated, see example #1 on the manual page for session_destroy().
  11. Replies
    3
    Views
    273

    1. PDO can do anything MySQLi can do (maybe a few...

    1. PDO can do anything MySQLi can do (maybe a few obscure exceptions), with the added bonus of being able to work with many different DBMS's, not just with MySQL. (I prefer PDO, but that may be...
  12. JavaScript validation is almost worthless in a...

    JavaScript validation is almost worthless in a login form, other than convenience stuff like making sure required fields are not blank. You have to do the actual user/password validation on the...
  13. Replies
    3
    Views
    307

    Rather vague question, but maybe start by looking...

    Rather vague question, but maybe start by looking ant the "sticky" thread near the top of this forum category?
  14. Replies
    2
    Views
    305

    Should work as long as the dateadded column is...

    Should work as long as the dateadded column is defined as a timestamp or datetime data type.
  15. Replies
    13
    Views
    628

    Well there you go -- we just needed the...

    Well there you go -- we just needed the dozen-or-so preceding lines. :)
  16. Replies
    1
    Views
    249

    It could be done entirely with PHP (just HTML, no...

    It could be done entirely with PHP (just HTML, no JavaScript) by utilizing a series of form pages, each populated based on the values submitted from the preceding page. You can store values from the...
  17. Replies
    1
    Views
    250

    http://www.w3.org/TR/html5-diff/ or maybe...

    http://www.w3.org/TR/html5-diff/

    or maybe http://lmgtfy.com/?q=difference+between+HTML+and+HTML5
  18. Replies
    13
    Views
    628

    By "bigger picture", I just meant the code that...

    By "bigger picture", I just meant the code that contains the snippet you showed us, wondering whether there might be something in the logic flow of that code that's causing your spam-check code to...
  19. Replies
    1
    Views
    298

    You could streamline/simplify that a bit by not...

    You could streamline/simplify that a bit by not doing the same tests multiple times:


    <?php
    $user = new User();
    if($user->isLoggedIn()) {
    if($user->hasPermission('admin')) {
    echo...
  20. Replies
    13
    Views
    628

    Maybe it's not the check itself that's the...

    Maybe it's not the check itself that's the problem, but something in the logical flow in the bigger picture?


    Yeah, should get the same result (with a bit extra code ;) ).
  21. Replies
    4
    Views
    301

    I would just have one universal login page, then...

    I would just have one universal login page, then their defined access privileges would determine whether they can get to any admin-specific page. So the controller logic would be something like:

    ...
  22. Replies
    8
    Views
    546

    I think "color theory" is what I have seen this...

    I think "color theory" is what I have seen this discussed under most often.
  23. Replies
    4
    Views
    301

    A typical approach is to have a column(s) in your...

    A typical approach is to have a column(s) in your users DB table that indicates who has admin (or other) privileges. With an OOP approach, you might have an isAdmin() method in your User class. Then...
  24. Replies
    13
    Views
    628

    PS: If attacking it this way, I might do it more...

    PS: If attacking it this way, I might do it more along these lines:


    <?php
    // test data:
    $email = $name = $comments = 'Test <a href="HtTp://wwW.example.com">fubar</a>';

    $spam = false;...
  25. Replies
    13
    Views
    628

    Oh, you may want to use stripos() to make your...

    Oh, you may want to use stripos() to make your checks case-insenstive.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles