21 |
<{ |
<{ |
22 |
tntdb::Connection conn; |
tntdb::Connection conn; |
23 |
|
|
24 |
conn = tntdb::connect(dburl); //letting exceptions flow up and to tntnet and let it display an error message |
conn = tntdb::connectCached(dburl); //letting exceptions flow up and to tntnet and let it display an error message |
25 |
|
|
26 |
std::string customer_sql = "SELECT id,name,address,phonenr,contactperson FROM customer ORDER BY name ASC"; |
std::string customer_sql = "SELECT id,name,address,phonenr,contactperson FROM customer ORDER BY name ASC"; |
27 |
|
|
57 |
if (instres.size() > 0) |
if (instres.size() > 0) |
58 |
{ |
{ |
59 |
out << "Installations:\n"; |
out << "Installations:\n"; |
60 |
out << "<ol style='margin-top:0px;'>\n"; |
out << "<ol>\n"; |
61 |
for (tntdb::Result::const_iterator instit = instres.begin(); instit != instres.end(); ++instit) |
for (tntdb::Result::const_iterator instit = instres.begin(); instit != instres.end(); ++instit) |
62 |
{ |
{ |
63 |
tntdb::Row instrow = *instit; |
tntdb::Row instrow = *instit; |