具有两个参数的MYSQL更新表

时间:2019-05-29 05:14:18

标签: php mysql

<?php

$title = 'Sending review';

require_once __DIR__.'/config.php';

   if(isset($_GET['sub_q'])) {


         $uhash = $db_con->escape_string($_GET['uhash']);
         $content = $db_con->escape_string($_GET['review_content']);
         $page_url = $db_con->escape_string($_GET['page_url']);

         mysqli_query($db_con, "UPDATE view_rating set review_content = '$content' WHERE user_hash ='$uhash' AND page_url = $page_url");

   }

?>

0 个答案:

没有答案