add quotes

This commit is contained in:
Carly Ho 2023-06-29 18:51:01 -05:00
parent 2d33a9df4e
commit 8bc7bbc8a3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if (array_key_exists('give', $_GET)) {
// We're showing the number of kudos
$work = filter_var($_GET['show'], FILTER_SANITIZE_STRING);
$res = $db->query("select count(*) from works where id={$work};");
$res = $db->query("select count(*) from works where id=\"{$work}\";");
if ($res) {
$res = $res->fetchArray();
$count = $res['count(*)'];