»ç·ÊÁ¶»ç: UniWeb (°è¼Ó)
»ç·ÊÁ¶»ç: UniWeb (°è¼Ó)
- UniWeb »ç¿ë ¿¹ - ÁúÀÇó¸® ÇÁ·Î±×·¥
void main(int argc, char **argv) {
uci_startup(argv[0]);
EXEC SQLX CONNECT 'gallery_db';
uw_init_env("artwork_query"); /* initialize UniWeb application env */
for (;;) {
uw_connect_client(); /* wait for a client request */
uw_cgi_init_env(); /* setup CGI environment */
process_request(); /* process the request */
uw_cgi_final_env(); /* reset CGI environment */
uw_disconnect_client(); /* disconnect the client */
}
}
void process_request(void) {
......
fe_name = uw_cgi_find_form_entry("name"); /* identify the form values */
....
construct the SQL/X statement with form values;
process the SQL/X statement;
display the results;
}
Notes: