dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: NogDog

Page 1 of 20 1 2 3 4

Search: Search took 0.25 seconds; generated 21 minute(s) ago.

  1. Replies
    4
    Views
    226

    Of course, if someone posts something clever...

    Of course, if someone posts something clever that's not yet used, you better register/buy the domain name quickly before someone else squats on it. ;)
  2. Maybe something like this? RewriteCond%...

    Maybe something like this?


    RewriteCond% {REQUEST_FILENAME}! -f
    RewriteCond% {REQUEST_FILENAME}! -d
    RewriteCond %{THE_REQUEST} !/(robots\.txt|sitemap\.xml)\s [NC]
    RewriteRule. /index.php?/$1...
  3. Nope. :)

    Nope. :)
  4. Replies
    5
    Views
    444

    File uploads in PHP:...

    File uploads in PHP: http://php.net/manual/en/features.file-upload.post-method.php

    For sending emails from PHP including attachments, I usually use PHPMailer: http://phpmailer.worxware.com/
  5. Replies
    1
    Views
    282

    I'm a fan of minimally stringent email address...

    I'm a fan of minimally stringent email address validation, in part because the "rules" of what is actually "legal" are much more complex than most of us realize, and what you do not want to do is...
  6. It might be worth your while to poke around at...

    It might be worth your while to poke around at http://www.opensourcecms.com/ , in particular the "groupware" and "e-learning" sections, perhaps?
  7. Replies
    3
    Views
    409

    . . . ORDER BY whatever_the_id_column_is DESC

    . . . ORDER BY whatever_the_id_column_is DESC
  8. Okay, what do you call the tables for day numbers...

    Okay, what do you call the tables for day numbers > 26? :) If you called them "group_1", "group_2", etc., then you could simply do:


    $sql = "SELECT * FROM group_" . date('j') . " -- rest of...
  9. Not sure if I'm following you: is "groupA" a...

    Not sure if I'm following you: is "groupA" a table name, or some value being used in some table column to determine which rows to select, or something else?
  10. Replies
    2
    Views
    526

    I'll add that if you want to discuss level of...

    I'll add that if you want to discuss level of effort and time, that's fine -- just don't anybody start assigning monetary amounts to those guesstimates. It's up to you to decide how much your time is...
  11. Thread: Stop spam posts

    by NogDog
    Replies
    9
    Views
    880

    And if by any chance you actually know anyone who...

    And if by any chance you actually know anyone who thinks that posting spam here is worth the effort, you might want to point out to them that (a) it will likely have a lifespan measured in...
  12. No idea why you'd get a 404 -- anything in either...

    No idea why you'd get a 404 -- anything in either the php or httpd error logs?
  13. Replies
    11
    Views
    987

    $result = $conn->query($sql); if...

    $result = $conn->query($sql);
    if (mysqli_num_rows($result) > 0) {
    while($row = mysqli_fetch_assoc($result)) {
    $row = mysqli_fetch_assoc($sql); // <----- get rid of this...
  14. And what warning might that be? (If it's a...

    And what warning might that be? (If it's a "headers already sent" warning, see my comment in my code snippet.)
  15. Replies
    11
    Views
    987

    Tough to debug without seeing the actual code,...

    Tough to debug without seeing the actual code, but sounds like maybe you did not actually execute the query (e.g. $conn->query($sql)), and then use its result with the fetch function -- or maybe just...
  16. Replies
    11
    Views
    987

    Seems to me there's no reason to be doing all...

    Seems to me there's no reason to be doing all those queries. I'm thinking one query like this might do the job:


    $sql = "
    SELECT * FROM chat
    WHERE Username = '$userc'
    OR Username IN(SELECT...
  17. Replies
    11
    Views
    987

    In case anyone else likes consistent indenting: ...

    In case anyone else likes consistent indenting:


    <?php
    if (empty($_POST['chat'])) {
    echo 'Share what is on your mind !';
    } else {
    if (isset($_POST['csub'])) {
    $chat =...
  18. View Post

    <?php
    // make sure nothing gets output to browser before this point...
    if(somethingIsTrue()) {
    header('Location: http://www.example.com/foo.php');
    exit;
    }
  19. The errors mean that the array element you are...

    The errors mean that the array element you are specifying is unknown, e.g. you referenced $some_array['foo'], and while $some_array exists, it does not have a key named "foo". Therefore, you need to...
  20. Replies
    2
    Views
    437

    That would be done via JavaScript, so I will move...

    That would be done via JavaScript, so I will move this post there....
  21. One possibility: $parts = array(); while...

    One possibility:


    $parts = array();
    while ($row = mysqli_fetch_array($result)) {
    if ($row['ok'] != "") {
    $parts[] = $row['ok'];
    }
    if ($row['ok2'] != "") {
    ...
  22. Replies
    1
    Views
    513

    Not until they give us long-time members some...

    Not until they give us long-time members some perks. (And no, becoming a moderator here is most definitely not a perk.)
  23. Did you try this yet:...

    Did you try this yet: http://lmgtfy.com/?q=(%23803)+Some+of+the+aliases+you+requested+do+not+exist ?
  24. Replies
    1
    Views
    515

    Is it necessary? I suppose it's not necessary,...

    Is it necessary? I suppose it's not necessary, but I most likely would, because databases are just so darned useful for organizing and accessing ... wait for it ... data. As to how you link a...
  25. Replies
    1
    Views
    490

    http://php.net/manual/en/function.readfile.php#ref...

    http://php.net/manual/en/function.readfile.php#refsect1-function.readfile-examples

    (PS: You might want to read the link in my signature before using a thread title of "urgent" again. ;) )
Results 1 to 25 of 487
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles