12 lines
162 B
PHP
12 lines
162 B
PHP
|
<?php
|
||
|
|
||
|
$likeCount =
|
||
|
$currentId =
|
||
|
|
||
|
$sql = "UPDATE idee SET likes=? WHERE id=?";
|
||
|
$stmt = $db->prepare($sql);
|
||
|
$stmt->execute($likeCount, $currentId);
|
||
|
|
||
|
|
||
|
?>
|