Blackmailer
Registered
PHP:
$checkID = mysqli_query($con ,("SELECT id from table WHERE id= '$id'"));
if (!$checkD) {
die('Не може да изпълни заявката.');
}
if (mysqli_num_rows($checkID) > 0) {
}
else {
$result = mysqli_query($con, ("INSERT into table (name, text, title) VALUES
('".$id."','".$text."','".$title."')"));
//$result = mysqli_query($con, $query);
if($result)
{
mysqli_affected_rows($con);
}
else
{
echo 'Не може да добави в базата данни.';
}
}