我想在我的 PhpMyAdmin 中创建一个表,以便能够使用此代码...
if($_POST['like'])
{
echo "BlahBlahBlah.";
$sql = "UPDATE table set `likes` = `likes`+1 where `product_id` = '1'";
$result=mysql_query($sql);
}
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST">
<input type = "submit" name="like" value = 'like'"/>
</form>