Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Form and MySQL

Status
Not open for further replies.

KMdouglas

MIS
Jan 17, 2000
11
US
Using Frontpage, I am tying to create an asp page with a form for inputing data to a MySQL db. Things seem to be working except for one curious problem, records entered with a length greater than a record already established in the database are not stored.

For example I have a TEXT field (description)in a table called ticket. From MySQL command line I entered

INSERT INTO ticket(description)
VALUES("Hello World");

Using the form on the asp page if I enter "Hello" and then submit, the record is recorded in the table.

However if on the form I enter "Hello World 2" (or anything with a string length greater than that of Hello World) the record is not recorded in the table.

As a workaround for this I can enter from command line a string of thousands of characters for that field, but there must be an easier way.

Any help is appreciated.



Kevin M. Douglas
kevin@easternresearch.com
 
before u execte the query do this:

response.write sql

can u post the sql?

Known is handfull, Unknown is worldfull
 
Answered my own question.

I checked the option "Don't Optimize Column Width" on the MyODBC Data Source I am using and can write to the db with no problems.



Kevin M. Douglas
kevin@easternresearch.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top