Search results

  1. NSA

    MySQL is being gay.

    That won't work.
  2. NSA

    MySQL is being gay.

    So, I have an update query like so: "UPDATE chat_admins SET username = '" . $username2 . "',password = '" . $password . "',key = '" . $key . "' WHERE username = 'admin' AND password = 'password'"; But whenever I try and run the stupid thing, I get this retarded error: You have an error...
  3. NSA

    #Music -- Thoughts?

    Regardless of your thoughts, Spotify beats them all. 'Nuff said.
  4. NSA

    [PHP/MYSQL] POST Returns 0

    Note to people using UPDATE: Do not use AND when specifying changes (UPDATE something=something AND something=something) but instead use ",". (Except when specifying what to change them to (WHERE something=something)) I was trying to fix this for 2 hours. It was something as simple as that...
  5. NSA

    [PHP/MYSQL] POST Returns 0

    Hello, For some reason when I post the username data to PHP, it stores it in the database as 0. I've posted my source below, ignore the JavaScript for now. install-2.php <!DOCTYPE html> <html> <head> <title>Live Chat Admin</title> <link rel="stylesheet" href="install_style.css"...
  6. NSA

    [PHP] Find & Edit After [PHP]

    Yes! Thanks a lot! Issue resolved.
  7. NSA

    Show DevBest Live Chat

    I added it so it was future proof. I'll be adding nl2br to preserve line breaks once I get it fully secure.
  8. NSA

    Show DevBest Live Chat

    I'm going to be adding something like this for admins, but not regular users.
  9. NSA

    Show DevBest Live Chat

    What do you mean? The chat box shows 40 posts before it starts cutting them out.
  10. NSA

    Show DevBest Live Chat

    You can do so.
  11. NSA

    Show DevBest Live Chat

    Added checkbox for submitting when the enter key is pressed Added some extra checks for Name and Message Added Theme Chooser Fixed Problems with Bans
  12. NSA

    [PHP] Find & Edit After [PHP]

    Well, I want to find what is after the : and replace it with the users selected configuration. So, if I wanted inc21 to be "localhost", it will find whatever is after : and replace it with their selected host (localhost).
  13. NSA

    [PHP] Find & Edit After [PHP]

    Holmes, using this returns this: File: <?php $file = fopen("somefile.txt", "r"); $members = array(); fclose($file); foreach($members as $member){ $value = array_shift( $members ); $new = explode("inc21 : ", $value); $new2 = array_shift($new); $new3 = explode("inc22 : "...
  14. NSA

    [PHP] Find & Edit After [PHP]

    Hello, I'm trying to make a PHP installation file for one of my applications. I have a text file like so: inc21 : 12 inc22 : 29 inc87 : 21 I want PHP to search for the : and edit the "12" to a set string. So if I have a string of text say "Hello", I want "12" to be replaced by "Hello"...
  15. NSA

    [NEW] Website Template - Slick Design

    I like it. I'm not sure why but I don't seem to like the footer -- maybe it's just me. Good work!
  16. NSA

    User is typing

    Still, when you finish typing is the most important part, and when you finish typing, you release the key and press the button.
  17. NSA

    Show DevBest Live Chat

    There is actually a word filter, but only certain words. If you go on the site, and type "fuck" you should be banned. Wasn't aware of XSS Injections. Fuck.
  18. NSA

    User is typing

    Managed to get this 'somewhat' working by using this: var typingTimer; var Interval = 5000; $('#chatlol').keyup(function(){ typingTimer = setTimeout(finTyping, Interval); }); $('#chatlol').keydown(function(){ clearTimeout(typingTimer); }); function finTyping () {...
  19. NSA

    Random Imgur Image game

  20. NSA

    Random Imgur Image game

Top