Closed s22-tech closed 1 month ago
Unfortunately, I'm not able to delete a category. I'm not getting an error, but
$delete = getPostValue('delete');
appears to be empty.
I'm getting this error in the console. It flashes briefly before disappearing, so I had to take a video of it, and then a still. There is no line 238 in category.php, let alone a line 170, so not sure what it's referring to.
I found it. Line 89 of category.php is missing a quote mark. Change this:
. 'type="submit" onclick="return confirm('
to this:
. 'type="submit" onclick="return confirm(\''
Should be fixed now.
PHP Parse error: syntax error, unexpected single-quoted string " )" in /cal/category_handler.php on line 74
I fixed it by making this change:
Switching to double quotes around the SQL not only eliminates the problem, but also makes the SQL stand out from the rest of the code.