This is a discussion on "ASP and MYSQL" within the Classic ASP section. This forum, and the thread "ASP and MYSQL are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ASP and MYSQL
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
ASP and MYSQL
Hey programmers!!
I'm just been asigned to create an ASP-MYSQL connection. I was wondering if that's possible, if so, please help. I don't now much about ASP, I only now it uses visual basic, so it's gonna be boring. Anyway, any help will be well recieved... |
|
|
|
|||
|
Re: ASP and MYSQL
ASP.NET uses full VB, JScript, C++ or C# but ASP uses VBscript or JScript. Just so you know
To the question, yes you can use MySQL with ASP. You just need to alter the connection screen although that is easy enough to find as shown below. I find this to be a useful resource: http://www.google.com.pr/search?q=my...en-US:official Heres an example found in the above link: http://www.webafrica.co.za/kb/develo...onnection.html I'd give you an example but I have yet to play around with MySQL and ASP. |
|
|||
|
Re: ASP and MYSQL
Umm this is how I connect to the MySQL database with ASP, I think this is what you're asking?
<% set objConn=server.CreateObject("ADODB.Connection") strConn="Driver={MySQL ODBC 3.51 Driver}; Server=localhost; database=databasename; uid=userid; pwd=password; port=3307; option=1;" objConn.Open strConn%> Replace databasename, userid, password and I don't know about port. Depends on the port the database is running from...or something. |
![]() |
| Tags |
| asp, mysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP MySQL | ccandeland | Databases | 3 | Nov 17th, 2007 10:19 |
| MySql help | nashultz07 | Databases | 4 | Jul 27th, 2007 09:11 |
| Mysql/php | marie2007 | PHP Forum | 7 | Jul 10th, 2007 13:20 |
| Mysql | Paul00000001 | Databases | 7 | Sep 13th, 2006 21:48 |
| Mysql | Physt | Databases | 1 | Aug 18th, 2004 21:45 |