|
crosscreek -> RE: conecting to mysql (2/27/2008 21:25:51)
|
Could be me...I was having problems with the sessions & know it was the server side problem. I am using a different host for this project. Thanks for the help....It worked & my open.asp page is blank...no errors...[:D] Now I am trying to figure out how to write the code. I understand the concepts, just finding out there are many different ways to write code. Another Quick question...Trying to add a field to mysql (have tables done, but there are empty) I have a form with a text box & pointing to the asp page adddog.asp The adddog.asp page has the following code <%@ Language=VBScript %> <% Option Explicit %> <!-- #include virtual="adovbs.inc" --> <!-- #include file="openconn.inc" --> <% Dim objRS Set objRS = Server.CreateObject("ADODB.Recordset") objRS.Open "tbldog", myConn, , adLockOptimistic, adCmdTable objRS.AddNew objRS("name") = Request.Form("name") objRS.Update objRS.Close Set objRS = Nothing %> <!-- #include file="closeconn.inc" --> I am getting an Microsoft VBScript compilation error '800a0400' Expected statement /adddog.asp, line 5 Option Explicit But my test page (open.asp) doesn't give me an error. Am I thinking on the right page. Is the code to update an access database different then a mysql database? I am reading & going by a book that uses access examples, but not sure if it matters. Thanks
|
|
|
|