Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MYSQL: inserting error
- INSERT INTO `Attacks_key`
- (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
- VALUES
- ('111', 'REQUEST', ' mysql_real_escape ', '222', 'xss, csrf, id, rfe, lfi');
- INSERT INTO `Attacks_key`
- (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
- VALUES
- ('111', 'REQUEST', 'mysql_real_escape_string($_POST['username']); ', '222', 'xss, csrf, id, rfe, lfi');
- $user="root";
- $password="*";
- $database="*";
- mysql_connect(localhost,$user,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $sql = "SELECT `Key_id` FROM `Event` ORDER BY `Key_id` DESC LIMIT 1";
- $result =mysql_query($sql);
- $row = mysql_fetch_assoc($result);
- $EventKey= $row['Key_id'];
- $query="INSERT INTO `PHPLOGS`.`Attacks_key` (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`) VALUES ('$EventKey', '$getname', '$getvalue', '$getimpec', '$gettags');";
- mysql_query($query);
- mysql_close();
- INSERT INTO `Attacks_key`
- (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
- VALUES
- ('111', 'REQUEST', 'mysql_real_escape_string($_POST['username']); ', '222', 'xss, csrf, id, rfe, lfi');
Add Comment
Please, Sign In to add comment