To create a sort of "browse the pages" in a page with DWCS6: how?

Hello all again,
as usual i'm here with something that for me seems impossible and maybe it's super easy... i checked online but i couldn't find any answer. I start with a description of what i want to accomplish:
- i have 1 database (mySQL) with a table called "Books", inside i have these fields: Title (VARCHAR 60), Author (VARCHAR 20), StoryText (LONGTEXT)
- i have 1 page for me, where i insert with a form a book when i want to update the DB
- i have 2 PHP pages, one that has links where the user chooses, for example, the name of a book and the other that gets that name from the URL and show the content (x chapters of the story, tale or whatever)
- i'm the user and i click on the link "The Little Prince", the page loads and shows me the title, the author, the text of x chapters (let's say 4 chapters)
- that text has to be "divided" in more than one page because it's too long for a single page, so i want to see something like:
Example when you enter the page:
The Little Prince
Once upon a time......
Page 1 | >> | Last page
and example when you reach page 9:
The Little Prince
The little prince....
First page | << | Page 9 | >> | Last page
All of this has to be in a single page though, no links to somewhere else or so. It's not a page itself but it appears in a PHP page like a table, textarea and so on. The closer thing i can think about it's a photogallery, where you press left and right and shows the pics but here, instead of pics, there's text. And if possible, i wouldn't want to create a table in my database everytime i insert a new book. What i'd like it's something that "splits" the text i have in a field called "StoryText" (table "Books") and let the user browse the pages. If i have, for example, a book 1000 lines long, i want to make a page every 50 lines so i get 20 pages. Those 20 pages need to get a sort of recordset navigation bar but... not about a recordset, only about a text in that page.
Resuming, what i need is:
- a way to split long text in x pages (like the example, 1 page every 50 lines of text)
- add a navigation bar or some sort of control to browse those pages
Is it possible something like that? Thanks.

The example below shows you how to split the article into pages using [PAGEBREAK] inserted into the database but it only gives you the option of NEXT | PREVIOUS
Split article into multiple pages
I'm positive you can do exactly what you require - it's a matter of finding and piecing the code together. Entering [PAGEBREAK] into the database isn't very practical either. I'd be looking for an example that extracted a certain number of words.

Similar Messages

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • I started getting a Timed Out error message on my iPhone 5 when browsing the web that reads Page could not be loaded.  Connection timed out.  I performed a Reset Network Settings and still get the error.  What is the fix?

    I started getting a Timed Out error message on my iPhone 5 when trying to browse the internet tthat reads Page could not be loaded.  Connection timed out.  I performed a Reset Network Settings and am still getting the error message.  What is the fix?

    Thanks so much for more direction. 
    I realized that I bought this iPod T4 about a year ago, so decided to check the date and it is still under the 1 year ltd. warranty until 21 Dec.  I contacted Apple via Chat and was informed that the problem may lie in the version of iTunes I was running 10.7.  Today Apple released v. 11 of iTunes which I was instructed to download.  It's TOTALLY different from iTunes 10.7 - drastically different in fact. 
    The Apple Chat Rep set up a phone call appointment forl 8:00 pm ET tonight where another Rep will call me to make sure the restore was accomplished OK.  With v. 11 of iTunes I can't even find the restore option!!!  The phone Rep will have to help me navigate v. 11 of iTunes.  It doesn't seem intuitive at all.  Maybe it's just me?!?!
    Thank you for sending this new link for firmware.  It's not clear to me right now whether I'll need it or not.  The phone Rep will probably somehow be able to resolve the problem.  If not, they'll probably send me to the nearest Apple store if the problem is hardware, as it would be covered under the warranty.  I will give another update as to what transpires as a result of the phone call with the Apple Rep.
    Again, thank you so much for helping me. 

  • How do I browse the whole list of Made with iBooks Author?

    As I remember, before major update of iTunes for mac, I could browse the whole list of "Made with iBooks Author".
    However, I can't find the way to browse the whole list of "Made with iBooks Author".
    Is the way of browsing disappeared, or changed?
    The link of the whole list used to be right above the "New & Coming Soon" in the "Made with iBooks Author" Window.
    After the major update of iTunes for mac, It just disappeared
    I really want to browse the whole list of it so I can buy the books which was made with iBooks Author.

    Pull down View > Show Sidebar.

  • During the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    during the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    Follow the instructions here > http://support.apple.com/kb/HT1808
    You may need to try a few times to get it to work

  • 11.0.10 Update Issue -  Problem saving documents - getting message "This document could not be saved.  There was a problem reading this document (21)."  The PDF documents are being created by Esker VSIFax and the problem is only occuring with updated vers

    Our IBM Unix system uses a program called VSIFax (Esker) to create PDF documents such as invoices.  Users that have updated to Acrobat version 11.0.10 can open the PDF but then when trying to save the document the get a message "This document could not be saved.  There was a problem reading this document (21)."  The problem is only occuring with updated version 11.0.10 (11.0.9 works fine).

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Has anyone managed to create an email account on the OS X mail client with Exchange 2007?

    Hi guys,
    the IT chaps of my new employer tell me that it is impossible to use the OS X mail client with Exchange 2007 servers. Is that correct? If so, does anyone know a workaround?
    Thanks
    Juergen

    jthurner wrote:
    Hi guys,
    the IT chaps of my new employer tell me that it is impossible to use the OS X mail client with Exchange 2007 servers. Is that correct? If so, does anyone know a workaround?
    Thanks
    Juergen
    No workaround needed, open Mail, Contacts and Calendars (in System Preferences) select Exchange, enter your email address and password, opt to setup Contacts and Calendars as well as mail and hit enter. That should set it up (assuming your apparently witless IT dept has setup the autodiscover record correctly at their end)

  • Why does Apple lock my phone to the first SIM I activate with? How to clear the IMEI?

    I paid a premium to purchase a unlocked iPhone direct from Apple Canada so that I could use this phone around the world with various SIM cards. As it turns out however, Apple locks this phone upon the initial activation with the SIM I had installed for the activation. The result is that I can receive calls, send/receive SMS but cannot send calls.
    Apple tells me that its Rogers I need to talk to. Rogers wants $60 to unlock my phone and tell Apple's IMEI database that this phone is legit. So why can't Apple register my IMEI directly in their own database? I bought the phone from them, unlocked.
    This is unacceptable frankly!
    Apple advised to do a restore from iTunes with the new SIM and it should unlock. I attempted this after a backup, restoring from the backup, but am still unable to make calls.
    Can anyone please advise how I can register my IMEI directly with Apple or how I can get this working again? I'm 5 months with a $800 piece of hardware that can't make phone calls.
    @Apple...can you please provide me with an official story of how this works, why its done this way and how it is to be solved?
    Appreciate the time of anyone who can help on this matter.

    iPhones which are sold subsidized or bought directly from a carrier are all carrier locked iPhones.
    The only way to buy an unlocked iPhone is direct from Apple at full price. This is just the way it is.
    As far as unlocking the iPhone goes it is up to the carrier. Rogers started to unlock iPhones back in December for $50 + applicable provincial taxes, which puts it somewhere close to $60. This is a service that Rogers offers and has nothing to do with Apple. Yes the IMEI number is added to town Apple server somewhere but the service is to do with Rogers. If you are having issues with the unlocking process then you need to contact Rogers.
    Once the IMEI number has been sent in you should be able to connect your iPhone to iTunes and do one of two things. You can restore the iPhone with the original SIM. You should get a message saying the iPhone is unlocked with the restore is completed. Second option is to install a sim card from a differnt carrier and then connect to iTunes. No restore should be required if you have a sim card from a differnt carrier.
    If you are not getting service with the new carrier and the sim card I would say double check that the sim card is working properly and is activated with the new carrier. You should be able to call them to see.

  • HT201441 If the previous owener is not with me how am I ? Resat the I pohne

    I would like to activetat I pohne but the privios owener is not with me so how i can activetat this pohne.

    Unfortunately, you need the password of the previous owner so please follow this guide: https://support.apple.com/kb/TS4515

  • Create print.css that repeats the content twice on page when printed

    Clear as mud, right?  I have a form that the user can fill in and then print to bring to the office.  They need two copies.  It fits on half of the page and could be printed twice on one page and then torn in half in the office.  This would save the user paper.
    I have a @media print css that removes everything from the page except the content div and it works fine.  Is there a way to repeat that div twice on the page via the css?
    Here's the css code:
    @media print {
        .sidebar1, .sidebar2, .title, .title2, .footer { display:none}
        .content { position:absolute;top:10px;left:10px}

    I have never tried to do anything like that in Dreamweaver - this is more a printer management thing. Can you not set the printer up to tile the page so it displays 2 copies on each page?
    Having said that, the only workaround I can think of (someone else might have another idea) is to duplicate your content div in the HTML and position it under your first, then {display:none} the 2nd div in screen.css and turn it on with the print.css.
    Edit:// Having read a little closer, this would only work with static content. The fact you are using a form would be more difficult as you would need to populate both divs with their content.

  • Creating a photo gallery like the China Gallery in Adobe Labs. How?

    I have photos in several categories (I'll use 2, "frank" and "wolfie" as examples here). What I'd like to do is build a photo gallery like the China Photo Gallery shown in the Adobe Labs site, where the user can switch between categories without going to a different page. Here's what I've done so far and how I'm stuck:
    I created a photo gallery with the instructions in the tutorial "Building a photo album with the Spry Framwork". I then inserted a Tabbed Panels widget for navigating between the categories.
    I set up an XML file as follows:
    /* frank category */
    <photo
    path = "001p.png"
    width = "467"
    height = "467"
    thumbpath = "001p.png"
    thumbwidth = "85"
    thumbheight = "85">
    </photo>
    /* wolfie category */
    <photo
    path = "001f.png"
    width = "467"
    height = "467"
    thumbpath = "001f.png"
    thumbwidth = "85"
    thumbheight = "85">
    </photo>
    To create the div holding the thumbnails for the "frank" category, I entered the following:
    <div class="thumbdiv" spry:region="dsGallery"><img src="thumbnails/frank/{@thumbpath}" spry:repeat="dsGallery" spry:setrow="dsGallery" class="thumbs" /></div>
    To create the div where the full size images will be displayed, I entered the following:
    <div class="mainpic" spry:detailregion="dsGallery"><img src="images/frank/{@path}" onload="MM_effectAppearFade(this, 1500, 0, 100, false)" /></div>
    Then, in the tabbed panel set for the "wolfie" category, I did the same thing, substituting "wolfie" for "frank". However, since there is only one xml file, spaceholders for all of the thumbnails appear in the thumbnail div for the frank category. I realize that I'll probably need to create a separate xml file for each category, but how do I set it up so the correct xml file is accessed when the link in the tab is clicked? Or am I approaching this all wrong?
    From reviewing the source for the China gallery, it appears that they set up links to different xml files instead of Tabbed Panels. How does that work? There are also some javascript files I can't find anywhere on Adobe's site.
    Thanks

    Hi,
    If you have seperate XML file but with the same basic structure then you can change the XML a Spry dataset refers to and regenerate the spry region without reloading the full page.
    So on my photo gallery page I can change the album the photos are shown from via the seturl sprydata function as below.  dsPhotos being my Spry dataset that points to the relevant XML dataset with my image references and captions etc.  My XML is actually dynamically generated from Picasa RSS feeds (and RSS feeds are XML) but the principle will be the same with your static XML.
    First I add an event listener for when someone clicks on an album (the li tag within my div with the id "albums" holds a photo and title for each album.)
    function Albums()
    var myalbums = Spry.$$("#albums li", "TabbedPanels1")
    var rows = dsAlbums.getData();
    var setListener = function( element, value )
      Spry.Utils.addEventListener( element, "click", function(){ showAlbum( value ); },false );
    for( var i = 0, length = myalbums.length; i < length; i++ )
      setListener( myalbums[i], i );
    Then this is the code which changes the photo album to be shown. (when the user clicks the relevant album)
    function showAlbum(i)
    pauseShow();
    pImage = 'No';
    var rows = dsAlbums.getData();
    var albumid = rows[i]["albumid"];
    var url = "xml/PicasaAphotoFeed.asp?albumid=" + albumid;
    dsPhotos.setURL(url);
    dsPhotos.loadData();
    var rowcount = dsAlbums.getRowCount() - 1;
    var nextalbum;
    var navnext;
    var n;
    The page is here www.thehmc.co.uk/photo5.html is you want to see it in context.
    In your case showAlbum would switch between Frank.xml or Wolfie.xml depending on how you decide to name your xml datasets.
    Regards
    Phil

  • Nothing prints on the paper from Firefox browser; the problem doesn't happen with IE.

    I follow all the steps exactly in Firefox support, but when I print nothing appears on the page. When I print from IE the page prints without any issues.

    You're welcome.
    Please click the '''Solved It''' button next to the answer that answered or solved your Firefox support issue, '''''it appears when you are logged in''''', so this thread gets marked as '''Solved''' to help other users who may have this same problem.

  • Why are tabs that say redirecting open and have nothing to do with the site i am working with and how do i stop this

    Easy example just clicking an email It will open a tab to play a game or to install flp media player I also work with ebay I go to click on an item then a new tab opens saying redirecting and goes to an add. website I tried the ask before installing for the cookies thing but even just getting to this page a window opened for allowing a cookie i assumed it was for firefox so i allowed it now a window opened for a game {Forge of Empires} this is getting to be a pain I'm thinking of going back to IE

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Firefox start page has been replaced with foxstart, how do I get my firefox start page back, I cannot get rid of foxstart

    This appeared after a re-install due to a virus. On installing Firefox 6 it immediately went to foxstart as a home page, I cannot get rid of this or get back to the firefox start page, I have uninstalled Firefox and re installed but still get the same problem. The web indicates that this is now a problem for many of your users so it looks as if a fix needs to be generated to provent this happening. Hope you can resolve this problem. Many thanks. dave

    Hey Revert back changes (if you don't like) via settings on right top side . Also send a related image so we gave you exact info about the settings. You can Shut automatic updates (but it may leads some issues) via
    '''option'''-> '''advance''' ->'''update''' now choose any one of the following :
    * Automatically Install Updats
    * Let me choose
    * never check for

  • I have the computer with my itunes library on it but no longer have access to the email account the library was set up with. How can I transfer the library to a new appleid/email?

    I have the computer that holds my itunes library. However, I no longer have access to the email account (and therefore apple account) it was set up with so can't sync/update etc. How can I transfer the library to my new apple id? Any help gratefully received as searched the internet but can't find the answer!
    Have ipod touch 4th gen, ipod touch 5th gen and ipod nano 7th gen all to sync to library.

    Hi Stillme,
    You cannot transfer purchases from one Apple ID to another. You need to go into the old Apple ID and change it to the new email address instead of using a new Apple ID altogether.
    Apple - My Apple ID
    If you can't remember the password to the old ID, then click on Reset your Password, and answer the Security Questions. If you can't remember the Security Questions, contact iTunes Support and have them reset:
    APPLE ID SECURITY CONTACT NUMBERS
    Once you get into your old account, Edit the Apple ID to your new email address. Before you will be able to do that you are going to have to change the email address on the new Apple ID to something else.
    Cheers,
    GB

Maybe you are looking for