Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 9th, 2003, 02:39 PM
Authorized User
 
Join Date: Jul 2003
Location: Houston, Texas, USA.
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
Reply With Quote
  #2 (permalink)  
Old July 9th, 2003, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Wien, Wien, Austria.
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
Reply With Quote
  #3 (permalink)  
Old July 9th, 2003, 03:11 PM
Authorized User
 
Join Date: Jul 2003
Location: Houston, Texas, USA.
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
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 16th, 2005 11:33 PM
validate.asp problems and logon.asp problems p2ptolu Classic ASP Databases 0 February 16th, 2005 01: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 10:00 PM



All times are GMT -4. The time now is 06:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.