Jump to content

Recommended Posts

Can anyone help me create a connection using ASP. I have used PHP with MySQL but I have to re-create this on a windows server using ASP.

 

Previouse cose in PHP

 $link = mysql_connect($host, $user, $pass) or die(mysql_error());
 $database = @mysql_select_db ($data, $link);

 

This is what I have using ASP /ADODB using a DSN

<%
Set connection = Server.CreateObject("ADODB.Connection")
Set rsWeek = Server.CreateObject("ADODB.Recordset")
Set rsMonth = Server.CreateObject("ADODB.Recordset")
Set rsPrem = Server.CreateObject("ADODB.Recordset")
Set rsDiv1 = Server.CreateObject("ADODB.Recordset")
connection.Open dsn //*** Line 68 ***//  
%>

       

 

I wont be using DSN either. I have looked at connectionstrings.com but still confused

 

To clarify I need to connect to MySQL Server on Windows 2003 Server with ASP

 

 

Desmond.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/85352-connection-strings/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.