penghitung tombol suka php
<?php
session_start();
if(isset($_POST['likes']))
++$_SESSION['likeTemp'];
?>
<form method="post">
<table>
<td><?php echo "Blabla"; ?></td>
<td><?php echo "Trololo"; ?></td>
<td>
<?php
if(isset($_SESSION['likeTemp']))
echo $_SESSION['likeTemp'];
else
{
$_SESSION['likeTemp'] = 1;
echo $_SESSION['likeTemp'];
}
?>
<input type="submit" value="like" name="likes"></td>
</table>
Meidiana Rahmawati