Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Nov 2009, 09:38
vietfancy's Avatar
vietfancy vietfancy is offline
 
Join Date: Mar 2005
can't get more than 1 row from Database.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I used this code in the template and it only shows 1 row from the database. Did I do anything wrong?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Image:
Attached Images
File Type: gif 11-22-2009 4-29-58 AM.gif (14.4 KB, 40 views)
Reply With Quote
  #2  
Old 22 Nov 2009, 15:47
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
 
Join Date: Aug 2002
Real name: Yves
Query_first() returns only the 1st result from the database.

You must use query_read and fetch_array() for having more lines.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Administrator of http://forum.vbulletin-fr.org/

vBulletin QA Engineer / Lead Project Tools Developer
Reply With Quote
  #3  
Old 22 Nov 2009, 16:06
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
Why don't you use vb:each?
Reply With Quote
  #4  
Old 22 Nov 2009, 18:49
vietfancy's Avatar
vietfancy vietfancy is offline
 
Join Date: Mar 2005
Thanks guys.

Adrian. How do i use vb:each?

Thanks
Reply With Quote
  #5  
Old 22 Nov 2009, 20:11
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
Sorry, vb:each is not what you need.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 15:03.

Layout Options | Width: Wide Color: