12 // hello world, the web server
13 func HelloServer(c *http.Conn, req *http.Request) {
14 io.WriteString(c, "<html><form method=post><input type=\"input\"><input type=\"submit\" name=\"go\" value=\"go\"></html>\n");
19 var Dbconn *dbibridge.DBConnection;
21 Dbconn = dbibridge.DBICreate();
23 dbibridge.DBIConnect(Dbconn, "mysql", "localhost", "root", "password", "zm");
24 dbibridge.ExecSQL(Dbconn, "create table asdf (asdf int)");
25 dbibridge.DBIDisconnect(Dbconn);
26 //http.Handle("/hello", http.HandlerFunc(HelloServer));
27 //err := http.ListenAndServe(":12345", nil);
29 ////panic("ListenAndServe: ", err.String())