Updated the backend code; I don't know why I was modifying the user

php
Aadhavan Srinivasan 1 year ago
parent 47b5fe7b8b
commit 31f3ab0d79

@ -11,8 +11,8 @@ $row_id = $result[0]['id'];
$statement = $session->prepare('UPDATE data SET shortlink=?, url=?, user=? WHERE id=?;'); $statement = $session->prepare('UPDATE data SET url=? WHERE id=?;');
$new_result = $session->execute($statement,array('arguments' => array($_POST['link'], $result[0]['url'], $result[0]['user'], $row_id))); $new_result = $session->execute($statement,array('arguments' => array($_POST['url'], $row_id)));
http_response_code(204); http_response_code(204);
?> ?>

Loading…
Cancel
Save