can i use mysql database with asp

Reply

Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

can i use mysql database with asp

 
0
  #1
Sep 19th, 2005
i want to learn asp . can i use mysql database with asp.how to connect to mysql database.
will u tell me the basic asp tutorials for beginners.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: can i use mysql database with asp

 
0
  #2
Sep 21st, 2005
You can. But it would be much easy to use PHP with MySQL, at least there is phpMyAdmin to help with the interface with database. Connecting mySQL in ASP is as follow (change the dbname,username and password to yours):
  1. <%
  2. ' Open database
  3. Dim Conn, RS
  4. Set Conn = Server.CreateObject("ADODB.Connection")
  5. Conn.Open "Driver={MySql ODBC 3.51 Driver}; Server=localhost; database=dbname; uid=username; pwd=password; option=3;"
  6. Set RS = Conn.Execute("SELECT * From tblcart")
  7. ' display results
  8. While Not RS.EOF
  9. Response.Write RS.Fields("fieldname") & "<br>"
  10. RS.MoveNext
  11. Wend
  12. ' closing connection
  13. RS.Close
  14. Conn.Close
  15. Set RS = Nothing
  16. Set Conn = Nothing
Since you just want to start learning ASP, it would be better to learn php, if you want to use mySQL. You can easily change to ASP or other server side language in the future as they are very much the same. I learnt ASP at the first place and store data in MS Access and now move to php and mySQL. It just take me couple months to master php.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 139
Reputation: aarya is an unknown quantity at this point 
Solved Threads: 0
aarya's Avatar
aarya aarya is offline Offline
Junior Poster

Re: can i use mysql database with asp

 
0
  #3
Sep 23rd, 2005
thank u very much, yes i m learning php. thnaks for ur sajaction
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 4
Reputation: HemantK is an unknown quantity at this point 
Solved Threads: 0
HemantK's Avatar
HemantK HemantK is offline Offline
Newbie Poster

Re: can i use mysql database with asp

 
0
  #4
May 25th, 2006
Hi,


you can learn more about asp.

just browse to www.asptutorial.info

Bye


HemantK
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1
Reputation: bijaykumar is an unknown quantity at this point 
Solved Threads: 0
bijaykumar bijaykumar is offline Offline
Newbie Poster

Re: can i use mysql database with asp

 
0
  #5
May 28th, 2006
how do i run mysql server 2000 in my pc
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: can i use mysql database with asp

 
0
  #6
Jun 7th, 2006
there isnt a mysql version 2000. and that you would have to ask in the "database" forums
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 4
Reputation: oscarsierra is an unknown quantity at this point 
Solved Threads: 0
oscarsierra's Avatar
oscarsierra oscarsierra is offline Offline
Newbie Poster

Re: can i use mysql database with asp

 
0
  #7
Jun 17th, 2006
I think there is one problem with mySQL when using ASP, when mySQL change version, your syntax written in ASP can be "out of date".... I suggest you to use ASP with MSSQL and mySQL with PHP, that makes it much easier to get help in the different forums and knowledge bases too! My experiences only, not necessary the truth :-)
Last edited by oscarsierra; Jun 17th, 2006 at 8:50 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC