Adobe Dreamweaver Forums



Last 10 THreads :         Dreamweaver Files panel cannot find my sites (Last Post : Murray *ACE* - Replies : 4 - Views : 5 )           »          Page Layout (Last Post : Murray *ACE* - Replies : 11 - Views : 12 )           »          Flash not appearing in web page (Last Post : rdcartoon - Replies : 0 - Views : 1 )           »          Visited Link appears as default (Last Post : DinahD - Replies : 7 - Views : 8 )           »          Insert "Search" in a Topic (Last Post : jimpr - Replies : 2 - Views : 3 )           »          The "quality" setting (Last Post : davexnet - Replies : 1 - Views : 2 )           »          click-and-drag swf pages (Last Post : Adventures NW mag - Replies : 0 - Views : 1 )           »          advice please (Last Post : NedWebs - Replies : 3 - Views : 4 )           »          Before I cry I thought I would ask.... (Last Post : Erik L. **Community Expert** - Replies : 1 - Views : 2 )           »          PROBLEMS WITH FLASH WEBSITE (Last Post : Alix86 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 09-01-2008, 05:30 PM
Nasik
 
Posts: n/a
Diggs:
Default Recordset selects first 30 rows (PHP)

HI,

I have selected first 30 rows from mysql query, and now i want to show all
records one-by-one (a record/per page). Please help me to code this function.

e.g. my query looks same as given below:-

select email, name, dob from users limit 30;

Regards



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-01-2008, 10:13 PM
danilocelic AdobeCommunityExpert
 
Posts: n/a
Diggs:
Default Re: Recordset selects first 30 rows (PHP)

Nasik wrote:
> HI,
>
> I have selected first 30 rows from mysql query, and now i want to show all
> records one-by-one (a record/per page). Please help me to code this function.


Fairly easy to accomplish, depending on exactly how you want your data to be displayed, but a very quick and simple way to do this is with the Dynamic Table: Place the insertion point at the location where you want your data to be displayed, open up your Insert bar, go to the Data category, then select Dynamic Table. It's on the immediate right of the Recordset icon, in the drop menu. Within the UI that appears, select the name of your recordset, how many records to output (I'll assume you want to write out all of them) so check All records, then click OK.

For more advanced output, you can use the Repeat Region (second to the right from the Recordset icon, or in the Server Behaviors panel, click the + button and select Repeat Region).

The main difference between the repeat region and the dynamic table is that the dynamic table outputs all of the columns of your recordset as a table with the column names as the header for each column in the output table. This can work fro some folks, but for others you want more fine grained control of the output, and that's where the Repeat Region allows you to set up the display of one record with output area for each column of data that you want the end user to see, then you select that block of content and apply the repeat region. Voila, repeat content to your exact specifications.



--
Danilo Celic
| http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk