ASP and MYSQL

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 9th, 2006, 18:09
Up'n'Coming Member
Join Date: Aug 2006
Location: Peru
Age: 21
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Reply With Quote

  #2 (permalink)  
Old Aug 11th, 2006, 14:20
Up'n'Coming Member
Join Date: Mar 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: ASP and MYSQL

ASP.NET uses full VB, JScript, C++ or C# but ASP uses VBscript or JScript. Just so you know . I don't see why it would be boring well more boring then any other language but hey everyone is entitled to their own opinions.

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.
Reply With Quote
  #3 (permalink)  
Old Aug 16th, 2006, 16:56
Junior Member
Join Date: Aug 2006
Location: UK
Age: 23
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Aug 16th, 2006, 17:58
Up'n'Coming Member
Join Date: Aug 2006
Location: Peru
Age: 21
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: ASP and MYSQL

Thanks Paula,
just what I was looking for...
Reply With Quote
Reply

Tags
asp, mysql

Thread Tools

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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 15:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43