Skip to content

Commit

Permalink
sortorder fixes
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1957 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Aug 18, 2006
1 parent 35574ca commit a39c882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function db_quote($str)

foreach($questionorder as $key =>$value)
{
$upordquery="UPDATE {$dbprefix}questions SET sortorder='".str_pad($key+1, 4, "0", STR_PAD_LEFT)."' WHERE qid=".$value."";
$upordquery="UPDATE {$dbprefix}questions SET question_order='".str_pad($key+1, 4, "0", STR_PAD_LEFT)."' WHERE qid=".$value."";
$upordresult=mysql_query($upordquery) or die(mysql_error()) ;
}
}
Expand Down

0 comments on commit a39c882

Please sign in to comment.