Disk or Network Error
by T Logan, May 28, 2008 12:14
I'm running into a problem when uploading a file. When the file is uploaded I need to do some permissions lookups to a database. Each time it tries to connect to a database on the server (using a DSN) it fails with "Disk or network error.: Database connection failed". I can connect to a MySQL database on another host with no problem.
Sample Code...If I remove... enctype="multipart/form-data" ...from test.odb, the database lookup works as expected.
_____test.odb_____ <form enctype="multipart/form-data" name="attachform" method="post" action="./test_upload.odb"> <input type="hidden" name="upload_dir" value="d:\upload"> <input type="hidden" name="max_upload" value="50000000"> <input type="file" name="filename" size="20"> <input type=submit value="Upload File"> </form>
_____test_upload.odb_____ <!--database dsn=quality--> <!--select * from users where uid=1 --> $sql_error$
_____Result_____ DATABASE ERROR: S1000 [Microsoft][ODBC Microsoft Access Driver] Disk or network error.: Database connection failed.
I have done this same thing on another server and it works fine so I'm figuring this is a not so much an ODBScript problem as it is a Windows or Apache configuration problem but how do I fix it?
Also, I did notice that <!--showinput--> doesn't show anything even though there are other fields in the form so maybe there is something funny going on with ODBScript too.
Name E-mail optional TopicMessage:
HTTP Link: Link text: