dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: NogDog

Page 1 of 20 1 2 3 4

Search: Search took 0.43 seconds.

  1. Thread: is this good?

    by NogDog
    Replies
    1
    Views
    89

    Well, you have a class doing two functionally...

    Well, you have a class doing two functionally separate things: connecting to a database and then running a query and outputting some results -- which in fact means it's doing 3 separate things, and...
  2. Thread: Filters

    by NogDog
    Replies
    1
    Views
    116

    Define "filters" in this case, and maybe we'll...

    Define "filters" in this case, and maybe we'll have some clue as to how to help you.
  3. Replies
    7
    Views
    567

    Note that per the RFC, this is a valid email...

    Note that per the RFC, this is a valid email address:


    "quoted name with spaces"@example.com

    So be careful what you disallow. ;)
  4. Not sure what you're referring to, as I only see...

    Not sure what you're referring to, as I only see where you echo out a string literal -- you don't assign anything to a variable?

    To follow my approach, where you echo out the error message,...
  5. PS: If you are going to do a HTTP redirect back...

    PS: If you are going to do a HTTP redirect back to the form instead of including it (I prefer the latter over redirects), then you would need to user $_SESSION['errors'] instead of $errors, and make...
  6. One approach is to put errors into a variable...

    One approach is to put errors into a variable (most likely an array element) that you can look for in your HTML where needed. So let's say the error is that the user did not supply a "user_name"...
  7. Replies
    12
    Views
    425

    It means (assuming no typos on my part or yours...

    It means (assuming no typos on my part or yours ;) ) that no file was uploaded from the browser to your PHP script. At this point then, it is not an issue with your PHP script (though once you get a...
  8. The error message is telling you that your code...

    The error message is telling you that your code is dependent on a class named "Input", but it is not defined within the context of the calling code. My guess is that you need to require() one or more...
  9. Replies
    1
    Views
    225

    Do you have programming experience in general but...

    Do you have programming experience in general but not specifically PHP, or just no real programming experience at all? (HTML and CSS are not programming, by the way. ;) ). If not, then a prepackaged...
  10. Replies
    12
    Views
    425

    I'd start by sticking something like this at/near...

    I'd start by sticking something like this at/near the top of your script before you do anything else with $_FILES, just to see what PHP actually received:


    echo...
  11. Replies
    2
    Views
    182

    You should be able to just do this: ...

    You should be able to just do this:



    while($row = mysql_fetch_assoc($q)) {
    $orders[] = $row;
    $i++;
    }
    $data[] = array(
    'TotalRows' => $i,
  12. One thing I see is the exit(); in your SignIn()...

    One thing I see is the exit(); in your SignIn() function. At that point, PHP will quit processing and nothing beyond that point will get processed or displayed. Is that really what you want? (Maybe...
  13. You will need a call to session_start(); before...

    You will need a call to session_start(); before anything gets output, including anything (even spaces or newlines) not within <?php ?> tags.
  14. Thread: Backlinks

    by NogDog
    Replies
    3
    Views
    302

    Closed thread as having nothing to do with...

    Closed thread as having nothing to do with server-side programming, and probably originated in the first place as just a way to spam us with a back link. ;)
  15. Replies
    1
    Views
    296

    HTTP request for PHP file goes to Apache (or...

    HTTP request for PHP file goes to Apache (or whatever web server) -> Apache tells PHP module to run that file -> PHP process reads, parses, and executes that file (and any includes).

    Therefore,...
  16. I have a "Private Messages" menu option near the...

    I have a "Private Messages" menu option near the top of the page, just below the "Forum" tab and just to the right of the "New Posts" option. Do you have that?

    On further review, I think the...
  17. Not to put words in his mouth, but maybe because...

    Not to put words in his mouth, but maybe because he has a life and doesn't spend every available minute here looking to see who needs help? ;) In my case, even as a (unpaid, mind you) moderator here,...
  18. I believe there is a time limit past when you can...

    I believe there is a time limit past when you can no longer edit a post, regardless of user status (except for mods and admins, of course). I'm pretty sure that with your current post count there are...
  19. Just because there are many ways to do it...many...

    Just because there are many ways to do it...many people like to use the alternate control structure syntax along with the <?= tag to keep things looking more like a templating syntax:


    <select...
  20. Replies
    12
    Views
    425

    Turn on all error reporting for now:

    Turn on all error reporting for now:


    <?php
    ini_set('display_errors', 1);
    error_reporting(E_ALL);

    Find out if it's a size issue:
  21. Replies
    3
    Views
    391

    Then it would appear that one (or both?) of those...

    Then it would appear that one (or both?) of those values does not exist in the linked table, so maybe you need to insert it (them) first before you do this insert?
  22. Replies
    12
    Views
    425

    Make sure you have the enctype setting in your...

    Make sure you have the enctype setting in your form tag. See http://php.net/manual/en/features.file-upload.post-method.php for details and an example.

    Even if that is the issue and you fix it,...
  23. Replies
    13
    Views
    567

    Are we talking about different database...

    Are we talking about different database logins/passwords for each user? (Normally I would say that's not necessary, as there are other ways to compartmentalize user-specific data; but for now let's...
  24. Replies
    47
    Views
    2,067

    [/php] for the closing tag (similar to HTML/XML).

    [/php] for the closing tag (similar to HTML/XML).
  25. Replies
    47
    Views
    2,067

    No, I'm talking about this forums's bbcode tags...

    No, I'm talking about this forums's bbcode tags that will format your code so that we can read it. It's the difference between this formatted code...


    <?php
    $data = array(
    'foo' => 'bar',
    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles