Skip to content

Commit

Permalink
adodb fixes
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1984 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Aug 19, 2006
1 parent 8084cb2 commit 690cc0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tokens.php
Expand Up @@ -257,8 +257,8 @@

#Lookup the names of the attributes
$query = "SELECT attribute1, attribute2 FROM {$dbprefix}surveys WHERE sid=$surveyid";
$result = mysql_query($query) or die("Couldn't execute query: <br />$query<br />".mysql_error());
$row = mysql_fetch_array($result);
$result = db_execute_assoc($query) or die("Couldn't execute query: <br />$query<br />".$connect->ErrorMsg());
$row = $result->FetchRow();
if ($row["attribute1"]) {$attr1_name = $row["attribute1"];} else {$attr1_name=_("Attribute 1");}
if ($row["attribute2"]) {$attr2_name = $row["attribute2"];} else {$attr2_name=_("Attribute 2");}

Expand Down

0 comments on commit 690cc0f

Please sign in to comment.