Skip to content

Commit

Permalink
Increased size of lang field in token table creation to allow for lar…
Browse files Browse the repository at this point in the history
…ger lang types (e.g. de-informal)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2465 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tom Tuddenham committed Mar 1, 2007
1 parent f1d16bf commit fb02b1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions admin/tokens.php
Expand Up @@ -167,7 +167,7 @@
. "lastname C(40) ,\n "
. "email C(100) ,\n "
. "token C(10) ,\n "
. "language C(2) ,\n "
. "language C(25) ,\n "
. "sent C(17) DEFAULT 'N',\n "
. "completed C(15) DEFAULT 'N',\n "
. "attribute_1 C(100) ,\n"
Expand Down Expand Up @@ -1227,9 +1227,7 @@
$data['attribute_2'] = $_POST['attribute2'];
}
$tblInsert=db_table_name('tokens_'.$surveyid);

//$inquery = $connect->GetInsertSQL($tblInsert, $data); # this wasn't working on SQL Server'
//$inresult = $connect->Execute($inquery) or die ("Add new record failed:<br />\n$inquery<br />\n".htmlspecialchars($connect->ErrorMsg()));

$inresult = $connect->AutoExecute($tblInsert, $data, 'INSERT') or die ("Add new record failed:<br />\n$inquery<br />\n".htmlspecialchars($connect->ErrorMsg()));
$tokenoutput .= "<br /><font color='green'><strong>".$clang->gT("Success")."</strong></font><br />\n"
."<br />".$clang->gT("Added New Token")."<br /><br />\n"
Expand Down

0 comments on commit fb02b1d

Please sign in to comment.