Hey guys,
So with PDO I'm having issues (again) And I'm logging an action. Code:
P.S. : I'm not using backticks because Turkish keyboard don't have it.
So error is at
and I don't know whats wrong?
Thanks.
So with PDO I'm having issues (again) And I'm logging an action. Code:
PHP:
$log = $db->prepare('INSERT INTO logs(user,type,extradata) VALUES(:n,:t,:e)');
$log->bindParam(':n', $_SESSION['username'], PDO::PARAM_STR);
$log->bindParam(':t', 'add_folder', PDO::PARAM_STR);
$log->bindParam(':e', 'Added folder named: ' . $name, PDO::PARAM_STR);
So error is at
PHP:
$log->bindParam(':t', 'add_folder', PDO::PARAM_STR);
Thanks.