| | |
simple query from newbie
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 6
Reputation:
Solved Threads: 0
I have downloaded CF successfully and have been successful in connecting to my own database. However, I am following the Developer Center Tutorial for creating a record set and table to display the query in DreamWeaver. It all works as advertised however I am only getting the first entry in the table. If I change to descending seq I get the last entry.
Appreciate in advance what error I may be doing wrong. FYI CF8 and DW8
Thanks.
:Bob
coldfusion Syntax (Toggle Plain Text)
<cfquery name="players" datasource="connsilvereagles"> SELECT * FROM player ORDER BY playernumber DESC</cfquery>
Thanks.
:Bob
Last edited by peter_budo; Feb 25th, 2009 at 6:06 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Have you added a loop to display the output?
coldfusion Syntax (Toggle Plain Text)
<cfquery name="players" datasource="connsilvereagles"> SELECT * FROM player ORDER BY playernumber DESC</cfquery> <cfoutput> <table> <cfloop query="players"> <tr><td>#playernumber#</td></tr> </cfloop> </table> </cfoutput>
Lost time is never found again.
- Benjamin Franklin
- Benjamin Franklin
![]() |
Similar Threads
- help a newbie? mySQL find & replace (MySQL)
- Newbie - looping and array [very simple] problem (PHP)
- Report w/Cateories/subcategories (PHP)
- Java newbie (Java)
- how to send dns query through C program? (C++)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- help newbie alert needs help with login page (ASP.NET)
- Newbie needs help with DB query (PHP)
Other Threads in the ColdFusion Forum
- Previous Thread: a streaming server query
- Next Thread: New to this and a little ignorant, but need help
| Thread Tools | Search this Thread |





