www.webdeveloper.com

Search:

Type: Posts; User: Stevish

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. First of all, even dropdown lists need to be...

    First of all, even dropdown lists need to be validated, because in the end, the user does not need to use the actual form in order to send GET or POST information to the script, so ALL fields should...
  2. Replies
    3
    Views
    1,487

    Well, the first thing to understand is that php...

    Well, the first thing to understand is that php is a server-side language, meaning that it can't change anything live. You can accomplish what you want, but when the user types the input in, it will...
  3. I'm sure it is... here's some pseudo-code: ...

    I'm sure it is... here's some pseudo-code:


    $tablearray = array();
    while($row = myslq_whatever()) {
    $tablearray[$row['admin_name']][$row['start_time']] = $row['activity'];
    }


    Then when...
  4. try this:

    try this:


    <?php mysql_select_db($dbName, $db) || die(mysql_error()); ?>

    That might give you more information about what went wrong.
  5. Replies
    2
    Views
    658

    When using single quotes, PHP will not evaluate...

    When using single quotes, PHP will not evaluate the variables inside, it will just treat them as text. The same goes for a newline character("\n" means newline but '\n' means \n). However, in this...
  6. Replies
    8
    Views
    1,268

    The nice thing about GET variables is that you...

    The nice thing about GET variables is that you can just put them into the url!


    <?php
    $time = time();
    $name = "Stevish";
    $attributes = "He is a really cool guy";

    header("Location:...
  7. Replies
    4
    Views
    5,740

    I really think you need javascript to do this,...

    I really think you need javascript to do this, unless you want the page to be loading and little to no information displayed (at which point the user might think it's stuck and refresh the page)....
  8. Well, you could form the array differently: ...

    Well, you could form the array differently:


    <?php
    while($row=mysql_fetch_array($sql))
    {
    $admin_name=$row['admin_name'];
    $activity=$row['activity'];
    ...
  9. Thread: Admin Script

    by Stevish
    Replies
    2
    Views
    616

    This may not be something that someone will just...

    This may not be something that someone will just whip up for you, but after a bit of practice and research, it might not be too hard!

    I have recently made a large database program, and learning...
  10. Replies
    21
    Views
    4,510

    The way to do what you're asking is with eval() ...

    The way to do what you're asking is with eval()

    <?php
    for($adder = 1; $adder < 10; $adder++)
    eval('$id' . $adder . ' = "whatever";');
    ?>

    However, that's probably not the best way. A...
  11. Replies
    12
    Views
    1,561

    It's probably recording the linebreaks as...

    It's probably recording the linebreaks as linebreaks (\r\n to php). Browsers ignore linebreaks in the code, so you'll need to convert them to <br/>. A function that does this is nl2br(). So you could...
  12. Replies
    12
    Views
    1,561

    This may not be the answer you're looking for,...

    This may not be the answer you're looking for, but it sounds to me like you'd be better off using a ready-made forum like phpbb or yabb (they're free). They are pretty customizable, and since it's...
  13. Replies
    12
    Views
    1,561

    You could try using a mysql table that has...

    You could try using a mysql table that has information about which users have visited which page, then you could use that database to populate session variables containing that information for each...
  14. Find out (programmatically) if filesystem is NTFS or FAT32

    I am trying to find out if there's a way for php to know what the filesystem is on the server it's running on. I am writing a script for use on multiple servers, and I need to know what the...
  15. Replies
    2
    Views
    1,460

    Well, nevermind, it's fixed. For those...

    Well, nevermind, it's fixed.

    For those wondering, adding single quotes around the username and password did the trick:


    $command = "mysqldump -u'$db_user' -p'$db_pass' $db_name";
  16. Replies
    2
    Views
    1,460

    New info: I added a return variable, and came up...

    New info: I added a return variable, and came up with a code of 2 (access denied I think). Should I be using quotations around the username or password?

    Here's one of the passwords (I'll change it...
  17. Replies
    2
    Views
    1,460

    [RESOLVED] mysqldump returns nothing

    ...and I mean NOTHING!

    I don't have shell access, so I can't test that way, but here's what I'm trying to do:



    <?php
    $command = "mysqldump -u$db_user -p$db_pass $db_name";
    ob_start();...
  18. Yeah, I was afraid of that. I'm using a jQuery...

    Yeah, I was afraid of that. I'm using a jQuery plugin, so I'll have to dig through the code to find a place to change the margin-top, because the code that actually changes the pictures is buried...
  19. Centering dynamic, absolutely positioned divs

    For a brief background, I have a 600px by 600px area that will hold either a 400X600 image or a 600X400 image (portrait or landscape). Due to the nature of the javascript I'm using, there will...
  20. Replies
    4
    Views
    2,503

    Ok, I've found a solution! First of all, you...

    Ok, I've found a solution!

    First of all, you need an unadulterated message body with headers and everything.


    $body = imap_fetchheader($mailstream, $msgno) . "\r\n\r\n" ....
  21. Replies
    4
    Views
    2,503

    NogDog, Thanks for the info, but that won't...

    NogDog,

    Thanks for the info, but that won't serve my purposes as it needs to work seemlessly with my existing (custom) database management software. The database is also used to track donations...
  22. Replies
    4
    Views
    2,503

    Quick note: I was pretty far along in...

    Quick note: I was pretty far along in programatically taking apart the E-mail and putting it back together when I discovered that there'd be no way to make sure all inline images were re-attached...
  23. Replies
    4
    Views
    2,503

    Forward an E-mail with PHP

    Here is my situation:

    A client wants to be able to send out E-mails based on a database query (ie. send email to all people in zip codes 90210-90230).

    My Solution:

    Instead of writing a...
  24. Replies
    6
    Views
    882

    View Post

    <?php
    if($_POST['zipcode'] && is_numeric($_POST['zipcode'])) {
    file_put_contents('ziplog.txt', "\n" . $_POST['zipcode'] . date(" - m/d/Y H:i:s"), FILE_APPEND);
    }

    This would first check to...
  25. The same function would work, even if the array...

    The same function would work, even if the array had 10000000000 entries. usort doesn't just go through the function once... it uses the function to compare each entry with any of the other ones. You...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles