Changeset 2772 in /cluster/svnroot


Ignore:
Timestamp:
Oct 29, 2010 7:00:05 PM (10 years ago)
Author:
fitz
Message:

#532: Actually put results into the database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/bccd.net/ver3/survey.php

    r2771 r2772  
    6666
    6767        $query   = "insert into survey (".$columns.") values (".$values.");";
    68         $html .= "query: $query";
     68
     69        if (!pg_query($connection, $query)) {
     70                $html = pg_last_error($connection);
     71        } else {
     72                $html = <<<HTML
     73                        <strong>Thanks!</strong>
     74                        <p>
     75                                Thank you for participating in our short survey. Your input will be used to improve the user experience with the BCCD!
     76                        </p>
     77HTML;
     78        }
    6979
    7080        return $html;
Note: See TracChangeset for help on using the changeset viewer.