Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2003, 02:39 PM
Authorized User
 
Join Date: Jul 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nvillare
Default Problems with my ASP

I created my first ASP and followed the directions. I am familiar with VBScript but have not written ASP. I have the page hosted by Brinkster.com and whenever I attempt to launch it an error reads. Can somone please help me?

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Guest Book</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<%
set MyConn=Server.CreateObject("ADODB.Connection")

 MyConn.Open ("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="& Server.MapPath("\nvillare\db\nidia.mdb"))

  mySQL = "SELECT theName, Email, Location, Comments FROM SignIn WHERE Post = "yes" ORDER BY ID DESC"

  set RS = MyConn.Execute(mySQL)

 While RS.Eof = false
%>
<table align=center width="80%" border="1" bordercolor="#00CCCC" cellspacing="0" cellpadding="5">
  <tr>
    <td align="center"><%=RS("theName").Value%></td>
  </tr>

  <tr>
        <td align="center"><a href="mailto:<%=RS("Email").Value%>"><%=RS("Email" ).Value%></a></td>
  </tr>

  <tr>
        <td align="center"><%=RS("Location").Value%></td>
  </tr>

  <tr>
        <td align="center"><%=RS("Comments").Value%></td>
  </tr>
</table><p>
<%
   RS.MoveNext
   count = count + 1
   wend

  RS.Close
  RS = null
  MyConn.Close
  MyConn = null
%>
<center>Number of Entries = <%=count%></center>
</body>
</html>

Thanks for your help!

Nidia
__________________
Thanks!

N
 
Old July 9th, 2003, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

It would be nice if you can provide us an error line, but I guess that mySQL statement could have an error if "Post" field is the type of boolean. In that case you have to use WHERE Post =yes instead of WHERE Post = "yes"...

HTH

...but the Soon is eclipsed by the Moon
 
Old July 9th, 2003, 03:11 PM
Authorized User
 
Join Date: Jul 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nvillare
Default

Thanks so much. That did it, know it works!

Nidia





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP problems please HELP... brian777 Classic ASP Professional 3 April 22nd, 2005 03:07 AM
logon.asp and validate .asp problems p2ptolu Classic ASP Basics 1 February 17th, 2005 12:33 AM
validate.asp problems and logon.asp problems p2ptolu Classic ASP Databases 0 February 16th, 2005 02:34 PM
New to ASP.NET w/ C# and having problems digitaltoddy BOOK: Beginning ASP.NET 1.0 1 September 20th, 2004 07:20 AM
ASP Problems vitanza BOOK: Beginning ASP 3.0 6 February 19th, 2004 11:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.