m.php/task%20manager/
\xampp\htdocs\7Learn.php\task manager\libs\lib-tasks.php:19
#0 C:xampp\htdocs\7Learn.php task manager\libs\lib-tasks.php(19):
syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ': at line 1 in C:
<b>Fatal error</b>: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL
7learn.php says
Stack trace:
PDOStatement->execute(Array) #1Cvamnalhtdarel 7 aam nhaitack
<br/>
function addFolder($folder_name){
global $pdo;
$current_user_id =getCurrentUserId();
$sql = "INSERT INTO folder (name,user_id) VALUES (?,?):";
$stmt=$pdo->prepare($sql);
$stmt->execute([$folder_name,$current_user_id]);
return $stmt->rowCount();
}متن کد sql