SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 17th, 2002, 05:13 PM
Klas Klas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 1 Klas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
no output from database ? ;-(

Hello!

This is my first post here.

The only output of this code(wml-file when i try it on a wapphone) is "Saljes", it don't lists things from the database. ;-(

Any suggestions, please ?

Code:

<% Response.ContentType = "text/vnd.wap.wml" %><?xml version="1.0" encoding="iso-8859-1"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.brinkster20.com/kursbok/xxxxx.wml">

<wml>

<!-- THIS IS THE MAIN CARD OF THE DECK -->

<card id="MainCard">

<p align="left"><small><b> Saljes </b></small></p>

<%

strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("\kursbok\db\xxxxx.mdb")

set conn = server.createobject("adodb.connection")

conn.open strconn

set rs = server.createobject("adodb.recordset")

Query = "SELECT titel,forfattare,pris FROM annonser WHERE typ = 'saljes'"

rs.open Query, conn

if not rs.eof Then

rs.movefirst

Do While NOt Rs.EOF
%>
<small><%=rs("titel")%></small><br>
<small><%=rs("forfattare")%></small><br>
<small><%=rs("pris")%></small><p>
<%
rs.movenext
Loop


else

response.write("<p align='left'><small>Databasen är tom</small></p>")

End if

rs.close

Set conv = nothing

set rs= nothing

set conn = nothing

%>

</card>

</wml>

Reply With Quote
  #2  
Old September 24th, 2002, 10:58 AM
peterg's Avatar
peterg peterg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Alton,Hampshire,UK
Posts: 40 peterg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hello Klas !

I can't advise on your database problem, but I would suggest that you use an emulator to test with. I use Deckit from pyweb.com available here. I also use Opera 5.

I have found Deckit a very useful piece of software as it will show you real error messages - unlike a mobile phone

Hope this helps !

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > no output from database ? ;-(


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway