Cgi and Database
Hershel Fisch
hershf at rgllc.us
Wed Feb 6 20:37:14 EST 2008
Hi all I'm in the works of creating a web site rev CGI which the interface
is almost done, And now I'm stuck when it comes to the database part. Have
no idea how to work this out tried various different way's and ????
E.g.
#!revolution
on startup
put 1 & getTip1() into theData
# write minimal set of HTTP headers to stdout
put "Content-Type: text/html" & cr
put "Content-Length:" && the length of theData & cr & cr
put theData
end startup
function getTip1
get revGetDatabaseDriverPath()
return it
end getTip1
function getTip2
get revOpenDatabase("sqlite","http://localhost/cgi-bin/testdb.db", , , , )
return it
end getTip2
function getTip3
get revOpenDatabase("sqlite","testdb.db", , , , )
return it
end getTip3
"ERROR 500"
Any help would be appreciated.
Hershel Fisch
More information about the use-livecode
mailing list