Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP page to work with mysql
Old 12-17-2005, 10:14 PM ASP page to work with mysql
Novice Talker

Posts: 8
Trades: 0
I need help bad. I have an ASP page that is used by a program in our office to upload clients information to an access database.

I'm trying to convert this whole process ti MYSQL but the program does not recognize PHP files to upload data and their is no way to change that. I have contacted the vendor and they said they only support access and not mysql.

If you click on the link it will download a zip file of the page i need help with. What i am trying to do is leave the asp format as is so that the data can upload to a mysql database instead of a access DB.

I know you can connect to MYSQL from ASP by using the MYSQL Driver 3.51 connection syntax, but what i need to make sure that the rest of the code in the ASP page will actually execute correctly to insert data into MYSQL.

Any ideas?
Click Here to Download the ASP File
dmarre is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-18-2005, 07:09 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I know you can connect to MYSQL from ASP by using the MYSQL Driver 3.51 connection syntax
Only if the host has the MySQL ODBC Driver installed on the server. If they don't support MySQL they probably haven't.

Provided there is no MS specific TSQL commands and it is standard ANSI SQL in the code it should work.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-19-2005, 01:46 PM
Novice Talker

Posts: 5
Trades: 0
The host needs the ODBC drivers
__________________

Please login or register to view this content. Registration is FREE
mysticalfairy is offline
Reply With Quote
View Public Profile Visit mysticalfairy's homepage!
 
Old 12-19-2005, 07:01 PM
Novice Talker

Posts: 8
Trades: 0
My webhoster has the ODBC Drive which MYSQL 3.51. According to the connection strings and other sources there are two methods to use MYSQL ODBC connections.

One: you can create a DSN in your webhoster and then in your asp page provide the following connections string:

"DRIVER={DSN Name}"

And the other is if you don't want to use DSN names:

"DRIVER={MySQL ODBC 3.51 Driver};SERVER=data.domain.com;PORT=3306;DATABASE= myDatabase; USER=myUsername;PASSWORD=myPassword;OPTION=3;"

Is this correct?
dmarre is offline
Reply With Quote
View Public Profile
 
Old 12-19-2005, 08:45 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-21-2005, 06:08 PM
Novice Talker

Posts: 8
Trades: 0
Well that is the funny thing. Because i have configured the DSN on the webhoster and also supplied the connection syntax as i stated above. When connecting to the database it acts as it has connected but none of the fields get updated.

That is why i placed a link to a zip file with the asp page that will connect to the mysql database. What i wanted was for someone to look at it and make sure that all the insert, update, and query strings in the ASP page will work for a mysql database.

That is what i wanted to know. If no one wants to download the page, then let me know so that i can post here. I just thought it was to big to post.

Replies?
dmarre is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP page to work with mysql
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23096 seconds with 12 queries