[insert_php] $servername=’localhost’;
$username=’iceeduph10′;
$password=’iceeduph123!@#’;
$dbname = “admin_ice”;
$conn=mysqli_connect($servername,$username,$password,”$dbname”);
if(!$conn){
die(‘Could not Connect My Sql:’ .mysql_error());
}

if(isset($_POST[‘submit’]))
{
$myname = $_POST[‘myname’];
$commentx = $_POST[‘commentx’];
$idnumber = $_GET[‘id’];
$sql = “INSERT INTO commentx (idnumber,xname,comment,date)
VALUES (‘$idnumber’,’$myname’,’$commentx’,NOW())”;
if (mysqli_query($conn, $sql)) {

} else {
echo “Error: ” . $sql . “” . mysqli_error($conn);
}

}

[/insert_php]

[insert_php] $sql = “select * from tbl_info where id = “.$_GET[‘id’].” “;
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_assoc($result)){
echo ‘
Avatar
‘;
}
[/insert_php]


[insert_php]

$swearWords = array(“asshole”,”buttface”,”asslicker”,”jerk”,”fuck”,”puta”,”Putang ina mo”,”Walang”,”hiya”,”Tae”,”Punyeta”,”Gago”,”Pakshet”,”Buwisit”,”bc8″,”Leche”,”Hayop”,”Lintik”,”kwenta”,”Matapobre”,”shit”,”Piss”,”Dick”,”bitch”,”Bastard”,”Damn”,”Rubbish”);

$replacer = array(“a**hole”,”b**tface”,”a**li***r”,”j**k”,”f**k”,”p***”,”****ng”,”Wal***”,”h***”,”T**”,”Pu*y***”,”G***”,”P**s***”,”Bu****t”,”bc*”,”L***e”,”H***p”,”Lin***”,”kw***a”,”M****obre”,”s**t”,”p**s”,”D*c*”,”b***h”,”B***ard”,”Da**”,”Rub****”);

$sql = “select * from commentx where idnumber = “.$_GET[‘id’].””;
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_assoc($result)){
$commentx = $row[‘comment’];
$commentx = str_ireplace($swearWords,$replacer, $commentx);

echo’

Name: ‘.$row[‘xname’].’

Message: ‘.$commentx.’

‘;
}

[/insert_php]