Jump to content

silentwf

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Posts posted by silentwf

  1. W3C...ah yes...W3C
    Basically in IE, they have a bunch of customized tags and attributes THAT ONLY WORK ON IE!

    So the problem is just compatibility, I suggest you add something like this to your website
    [code]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    [/code]
    for "loose.dtd", there are the options of "transitional" (or was it transition?) and "strict"
    add that to the VERY top of your code (before <HTML>)
  2. [quote author=RockingGroudon link=topic=103077.msg410148#msg410148 date=1154777193]
    but the best one is sha1 because md5 can be decrypted by some providers on the net, use it like this
    [code=php:0]
    <?php
    $encryptme="Hello World!";
    $encryptme=sha1($encryptme); // Encrypted
    ?>
    [/code]
    [/quote]

    [url=http://www.schneier.com/blog/archives/2005/02/sha1_broken.html]http://www.schneier.com/blog/archives/2005/02/sha1_broken.html[/url]
    Ouch?

    Always remember, NOTHING is absolutely secure.
  3. I'm trying to make a highlight replacing function just like GeSHi (but I need to mod it for my needs and stuff)
    My code is:
    [code]
    <?php
    $string = include("test.php");
    $r = "<a href='whoknowswhat.html'>apples</a>";
    $p = "apples";
    $s2 = eregi_replace($p, $r, $string);
    echo $s2;
    ?>
    [/code]
    i THINK that my $s2 declaration has no problems and I think the problem resides in $string. Is my declaration incorrect, 'cause once I change $string into something like "I love to eat apples" or something, the eregi_replace function works like magic.
  4. Actually i dont think its that hard...
    The VERY simple one I think is: (pseudo code)
    set up the db
    make the fields
    and edit

    So like you could have db with teh fields: id, txt, eTime; setting id as autoincremement.
    and then for every post you set up, add an id. and then when you want to modify it, just use the sql query with: "UPDATE dbname SET txt='$text', eTime=now()";
  5. Hello bilis
    Anyways, I ran into this problem myself, but now I can provide you with the answer  :D
    [code]
    $query  = "SELECT username FROM users WHERE username='$username'";
    $result = mysql_query($query);
    $checkUsername = mysql_fetch_array($result);

    if!isset($checkUsername['username']){ //if the username is not taken
    //do something
    } else {
    //report error
    }
    [/code]
    Hope this helps
×
×
  • 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.