Skip to content

Commit

Permalink
fixed save all error (added lid=$lid in query)
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2183 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Ronald Leenes committed Dec 11, 2006
1 parent 0000e10 commit 9c139ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/database.php
Expand Up @@ -577,7 +577,8 @@ function get_max_order($gid)
{
$langid=substr($sortorderid,0,strpos($sortorderid,'_'));
$orderid=substr($sortorderid,strpos($sortorderid,'_')+1,20);
$query = "UPDATE ".db_table_name('answers')." SET code='".$_POST['code_'.$codeids[$count]]."', answer='{$_POST['answer_'.$sortorderid]}' WHERE sortorder=$orderid and language='$langid'";
$query = "UPDATE ".db_table_name('answers')." SET code='".$_POST['code_'.$codeids[$count]]."',
answer='{$_POST['answer_'.$sortorderid]}' WHERE qid='$qid' and sortorder=$orderid and language='$langid'";
if (!$result = $connect->Execute($query))
{
echo "<script type=\"text/javascript\">\n<!--\n alert(\"".('Failed to update answers')." - ".$query." - ".$connect->ErrorMsg()."\")\n //-->\n</script>\n";
Expand Down

0 comments on commit 9c139ba

Please sign in to comment.