Re: CGI and Environment Variables

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
GeorgeWalters said...
cgilib/odbc.ew:1253	    if not SQL_SUCCEEDED( ok ) then                       
cgilib/odbc.ew:924	    return (rc = 0) or (rc = 1)                            
cgilib/odbc.ew:1255	        return -hconn                                     
cgilib/dbfile.e:187		if dbId < 1 then                                         
cgilib/dbfile.e:189			abort(1)                                                

Does anyone know what to do about this? The programs runs without a problem when run from Crimson but when launched from ID it cannot connect to the data base. If I can't solve this my CGI days are over. Hopefully some bright sole knows the answer.

It's hard to say. It might be easier if we knew what the error was. Take a look at getErrorODBC() or odbcError().

Matt

Sorry Matt, just got back from the weekend. Here's what I did

if dbId < 1 then fn = open("crash.txt", "w") if atom(dbId) then printf(fn,"%6d", dbId) elsif sequence(dbId) then printf(fn,"6s", dbId) end if

dbId = message_box("Can't open DataBase " & dbName,"",0) abort(1) end if the return code dbId = -2, hope that helps.

George

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu