Skip to content

Commit

Permalink
Modified "default" field in answers table to "default_value" field to…
Browse files Browse the repository at this point in the history
… stop conflict with MySQL reserved words.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@796 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Dec 3, 2003
1 parent 8f0c944 commit e027b39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qanda.php
Expand Up @@ -129,7 +129,7 @@
{
$answer .= " selected";
}
elseif ($ansrow['default'] == "Y") {$answer .= " selected"; $defexists = "Y";}
elseif ($ansrow['default_value'] == "Y") {$answer .= " selected"; $defexists = "Y";}
$answer .= ">{$ansrow['answer']}</option>\n";
}
if (!$_SESSION[$ia[1]] && (!isset($defexists) || !$defexists)) {$answer .= "\t\t\t\t\t\t<option value='' selected>"._PLEASECHOOSE."..</option>\n";}
Expand All @@ -148,7 +148,7 @@
{
$answer .= " checked";
}
elseif ($ansrow['default'] == "Y") {$answer .= " checked"; $defexists = "Y";}
elseif ($ansrow['default_value'] == "Y") {$answer .= " checked"; $defexists = "Y";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /><label for='$ia[1]{$ansrow['code']}' class='answertext'>{$ansrow['answer']}</label><br />\n";
}
if (((!$_SESSION[$ia[1]] && (!isset($defexists) || !$defexists)) || ($_SESSION[$ia[1]] == ' ' && !$defexists)) && $ia[6] != "Y")
Expand Down Expand Up @@ -187,7 +187,7 @@
$answer .= "\t\t\t\t\t\t<input class='radio' type='radio' value='{$ansrow['code']}' name='$ia[1]' id='$ia[1]{$ansrow['code']}'";
if ($_SESSION[$ia[1]] == $ansrow['code'])
{$answer .= " checked";}
elseif ($ansrow['default'] == "Y") {$answer .= " checked"; $defexists = "Y";}
elseif ($ansrow['default_value'] == "Y") {$answer .= " checked"; $defexists = "Y";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /><label for='$ia[1]{$ansrow['code']}'>{$ansrow['answer']}</label><br />\n";
}
if ($ia[6] != "Y")
Expand Down Expand Up @@ -231,7 +231,7 @@
$answer .= "\t\t\t\t\t\t<option value='{$ansrow['code']}'";
if ($_SESSION[$ia[1]] == $ansrow['code'])
{$answer .= " selected";}
elseif ($ansrow['default'] == "Y") {$answer .= " selected"; $defexists = "Y";}
elseif ($ansrow['default_value'] == "Y") {$answer .= " selected"; $defexists = "Y";}
$answer .= ">{$ansrow['answer']}</option>\n";
if (strlen($ansrow['answer']) > $maxoptionsize)
{
Expand Down

0 comments on commit e027b39

Please sign in to comment.