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...
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...
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"...
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).
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"...
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.
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 () {...