Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Failed to use Pro *C to write CGI program ?
Hello,
I tried to use Pro *C to write a simple CGI program, but it failed when
I executed in browsers.
The following is the source code :
char db[] = "user/pass_at_db";
int result;
EXEC SQL CONNECT :db;
EXEC SQL SELECT count(*) INTO result FROM testDB;
/* output to the WEB */
printf("Content-type: text/html\n");
printf("<html><body>Result = %d</body></html>\n", result);
return 1;
}
Would you please to teach me how can I use C(Pro *C) to write CGI
program ??
Or is there any other method to connect to Oracle in C ?????
Best regards,
Eric
Received on Fri Oct 15 1999 - 02:26:00 CDT