simple query from newbie

Thread Solved

Join Date: Nov 2008
Posts: 6
Reputation: bvaz is an unknown quantity at this point 
Solved Threads: 0
bvaz bvaz is offline Offline
Newbie Poster

simple query from newbie

 
0
  #1
Feb 21st, 2009
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.
  1. <cfquery name="players" datasource="connsilvereagles">
  2. SELECT *
  3. FROM player
  4. ORDER BY playernumber DESC</cfquery>
Appreciate in advance what error I may be doing wrong. FYI CF8 and DW8
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: simple query from newbie

 
1
  #2
Feb 25th, 2009
Have you added a loop to display the output?
  1. <cfquery name="players" datasource="connsilvereagles">
  2. SELECT *
  3. FROM player
  4. ORDER BY playernumber DESC</cfquery>
  5.  
  6. <cfoutput>
  7. <table>
  8. <cfloop query="players">
  9. <tr><td>#playernumber#</td></tr>
  10. </cfloop>
  11. </table>
  12. </cfoutput>
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 6
Reputation: bvaz is an unknown quantity at this point 
Solved Threads: 0
bvaz bvaz is offline Offline
Newbie Poster

Re: simple query from newbie

 
0
  #3
Feb 25th, 2009
gosh how stupid! thanks a lot, buddylee. appreciate you taking the time
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC