Direktori : /proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/ |
Current File : //proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/rating-save-ajax.php |
<?php require_once("config.php"); $data=$conn->prepare("select * from rating where sample_id='".$_POST['sample_id']."' and email_id='".$_POST['rate_email']."'"); $data->execute();$row=$data->fetch(); if($row) $conn->exec("update rating SET rating='".$_POST['rating']."' where rat_id='".$row['rat_id']."'"); else $conn->exec("insert into rating (sample_id,email_id,rating) values ('".$_POST['sample_id']."','".$_POST['rate_email']."','".$_POST['rating']."')"); ?>