User Profile

Collapse

Profile Sidebar

Collapse
sHyuAn
sHyuAn
Last Activity: Dec 2 '09, 04:07 PM
Joined: Dec 2 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sHyuAn
    replied to html notepad (help)
    Thanks markus for pointing me to the site.. :)
    See more | Go to post

    Leave a comment:


  • sHyuAn
    replied to html notepad (help)
    To: Dormilich,

    Can I use the below way to prevent injections?

    Code:
    $MailUser = sprintf("INSERT INTO mail VALUES ('', 0, 0, %u, unix_timestamp(), 'Forum Subscription', 'Please view your forum subscriptions, a new post has been made!')", $mail['userid']);
    
    $db->query($MailUser);
    See more | Go to post

    Leave a comment:


  • sHyuAn
    replied to html notepad (help)
    But if the stripslashes is not there, it will cause the same problem with those slashes like "Have a nice day\r\nHave a nice day". I am very new to web development. Learning through online. Hope to learn more by asking questions. And would you mind to brief me or gimme an example on how to secure the DB?

    And, yeah you are right.. Latin1 is used.
    See more | Go to post

    Leave a comment:


  • sHyuAn
    replied to html notepad (help)
    The below is the part for notepad that i inserted in php codes. Thanks for your kind help. :)
    Code:
    <?php
    if(isset($_POST['pn_update']))
    {
    $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid");
    $ir['user_notepad']=stripslashes($_POST['pn_update']);
    print "<br /><b>Memorandum Updated!</b>";
    }
    print "<fieldset style='border:
    ...
    See more | Go to post

    Leave a comment:


  • sHyuAn
    started a topic html notepad (help)

    html notepad (help)

    Hi, i have a problem here with the html notepad.. as shown in the image1 and image2.. when i press "enter" for one or two new lines,and after i click "Update!",
    the "rn" appears instead of showing new lines..
    could anyone teach me how to fix this problem?
    thanks in advance....
    See more | Go to post
No activity results to display
Show More
Working...