Add files via upload

This commit is contained in:
wibyweb 2022-08-10 02:29:04 -04:00 committed by GitHub
parent 29c1f89ed1
commit 57909c4a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,10 +44,10 @@
{
$tags = mysqli_real_escape_string($link, $_POST['tags']);
if($tags==""){
$result = mysqli_query($link,'UPDATE windex SET tags = NULL WHERE url = "'.$url.'";');
$result = mysqli_query($link,"UPDATE windex SET tags = NULL WHERE url = '".$url."';");
}
else{
$result = mysqli_query($link,'UPDATE windex SET tags = "'.$tags.'" WHERE url = "'.$url.'";');
$result = mysqli_query($link,"UPDATE windex SET tags = '".$tags."' WHERE url = '".$url."';");
}
if ($result === false)
{
@ -59,7 +59,7 @@
unset($_POST['tags']);
}
$result = mysqli_query($link,'SELECT tags FROM windex WHERE url = "'.$url.'";');
$result = mysqli_query($link,"SELECT tags FROM windex WHERE url = '".$url."';");
if ($result === false)
{
$error = 'Error fetching index: ' . mysqli_error($link);