Search
 
SCRIPT & CODE EXAMPLE
 

PHP

like button phpAdd Answer

<?php
if($_POST['like']) {
$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" value = "like" name='like'/>
</form>
Comment

PREVIOUS NEXT
Code Example
Php :: twig to pdf 
Php :: check if data inserted in database wordpress plugin 
Php :: curl_setopt_array php 
Php :: comment blade php 
Php :: Toaster switch Statement 
Php :: is resource php 8 
Php :: wp wc archive product page template 
Php :: put the date from new york with php 
Php :: laravel what is migrations 
Php :: public variable in php 
Php :: array random php 
Php :: php set cookie for 5 second 
Php :: how to removde product into shop loop via product id 
Php :: guzzlehttp submit form file 
Php :: change sender name laravel 
Php :: composer require rtconner/laravel-tagging 
Php :: Edit PHP INI 
Php :: get month days in php 
Php :: Redirect User To Different Page 
Php :: text to sha256 converter in laravel 
Php :: Pure Intersection Types - PHP 8.1 
Php :: php const scope 
Php :: Laravel unique Validation with multiple input field 
Php :: divide page in pdf with page break using php 
Php :: php config file 
Php :: laravel get last created id 
Php :: using custom fonts in php 
Php :: curlopt_postfields php example 
Php :: how to empty an array in php 
Php :: php function use 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =