How to autosave when i select item in dropdown list with different dropdown value for each rows
How to autosave when i select item in dropdown list with different dropdown value for each rows

index.php
Ajax autosave
1 | --Select-- Approve Reject Pending |
SaveDecision.php
<?php
if (isset($_POST['id'])) {
$con=mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
$decision=$_POST['decision'];
$id=$_POST['id'];
$query = "UPDATE decision SET select_result='$decision' WHERE id=$id";
$resource = mysql_query($query)
or die (mysql_error());
echo 'decision table is successfully updated to '.$decision;
}
This discussion has been closed.
Replies
Hi @sum458 ,
Is this the same issue as this thread?
There's a lot of code going on. I'm not seeing any reference to Editor so assume you're updating yourself. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin