There is a code snippet in the php script. Tell me what is executed by this code? All these lines are in a separate ss.php file:
<?php include 'settings.php'; $val = text($_GET['val'],$db); mysqli_query($db,"insert into nu3Dec (val) values ('$val')"); In settings.php , a connection to the database takes place and the script parameters are specified. The text () function there looks something like this (from the comment):
function text( $text, $db) { $text = mysqli_real_escape_string($db, $text); $text = htmlspecialchars($text, ENT_QUOTES); if( get_magic_quotes_gpc ()) { $text = stripslashes($text); } $text = trim($text); return $text; }