Reverse Datagrid Loading Order

Currently I have a datagrid loading data from a MySQL database via PHP & ZendAMF. I need to show the last rows first (reversing the order, Row 1 -> Last Row & Last Row -> First Row).
Any suggestions?

Well, since I'm paging the data in increments of 50, probably not a good idea to attempt it on the front in side. So, the PHP side is probably going to be the best option I think.
So here is my PHP:
public function getProjects_full_paged($startIndex, $numItems) {
        $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
        $this->throwExceptionOnError();
        mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
        mysqli_stmt_execute($stmt);
        $this->throwExceptionOnError();
        $rows = array();
        mysqli_stmt_bind_result($stmt, $row->project_id, $row->dateAdded, $row->Active, $row->project_Name, $row->project_SNumber, $row->project_Street, $row->project_City, $row->project_State, $row->project_County, $row->project_Zip, $row->project_Permit, $row->project_ContactName, $row->project_ContactNumber, $row->project_BuildType, $row->project_Type, $row->project_Footage, $row->project_Status, $row->project_Cost, $row->project_Deadline, $row->builder_Name, $row->builder_Address, $row->builder_City, $row->builder_State, $row->builder_County, $row->builder_Zip, $row->builder_Phone, $row->builder_Website, $row->builder_Email, $row->builder_ContactName, $row->builder_ContactNumber, $row->builder_Username, $row->owner_Name, $row->owner_Address, $row->owner_City, $row->owner_County, $row->owner_State, $row->owner_Zip, $row->owner_Phone, $row->owner_Website, $row->owner_Email, $row->owner_ContactName, $row->owner_ContactNumber, $row->owner_Username);
        while (mysqli_stmt_fetch($stmt)) {
          $rows[] = $row;
          $row = new stdClass();
          mysqli_stmt_bind_result($stmt, $row->project_id, $row->dateAdded, $row->Active, $row->project_Name, $row->project_SNumber, $row->project_Street, $row->project_City, $row->project_State, $row->project_County, $row->project_Zip, $row->project_Permit, $row->project_ContactName, $row->project_ContactNumber, $row->project_BuildType, $row->project_Type, $row->project_Footage, $row->project_Status, $row->project_Cost, $row->project_Deadline, $row->builder_Name, $row->builder_Address, $row->builder_City, $row->builder_State, $row->builder_County, $row->builder_Zip, $row->builder_Phone, $row->builder_Website, $row->builder_Email, $row->builder_ContactName, $row->builder_ContactNumber, $row->builder_Username, $row->owner_Name, $row->owner_Address, $row->owner_City, $row->owner_County, $row->owner_State, $row->owner_Zip, $row->owner_Phone, $row->owner_Website, $row->owner_Email, $row->owner_ContactName, $row->owner_ContactNumber, $row->owner_Username);
        mysqli_stmt_free_result($stmt);       
        mysqli_close($this->connection);
        return $rows;
How would I reverse that?

Similar Messages

  • Control load order of third-party menulets / menu extras at startup

    Does anyone know how to control or adjust the load order of third-party menulets / menu extras at startup? I am using the latest update to Tiger.

    There are two types of third-party menulets: those that use Apple's sanctioned "NSStatusItem" (which is not as full featured as Apple's menulets) and those that use the reversed-engineered (and unpublished) "NSMenuExtra" which is exactly what Apple's menulets use. The method for arranging these in your menubar depend on the type:
    1) Apple and "NSMenuExtra" menulets: hold down the command key (and keep it down) and you can click and drag these in the order your like.
    2) "NSStatusItem" menulets: these are added to left side of the the other menulets in the order they are launched. If these applications are in your "Login Items" then OS X launches these simultaneously, which means those that launched "quicker" will end up towards the right, and others will end up towards the left. The only real solution to controlling this order is to control the launch order by writing an AppleScript for each one that puts in an artificial delay before launch. Then, use these AppleScripts as your Login Items instead.

  • ApplicationLifecycleListener vs. load order

    Why isn't the load order reversed when shutting down a server?
    We have a number of applications (EARs) which have implemented the ApplicationLifecycleListener. When the server boots, the different applications listeners start()-methods get called in specified load order.
    But when shutting down the server the listeners stop()-methods are called in the SAME order. The logical would be the reverse order.
    This causes big problems for us. Is there a workaround?

    Not surprising. I've been fighting with BEA support/engineering to fix a similar issue with web applications since January(!). The first workaround that jumps off the top of my head is to use to use a single, custom listener that manages your other listeners and takes care of delegating the appropriate calls. Meaning that you'd only have a single <listener> element in weblogic-application.xml and that you'd have to come up with a way to configure the set of other listeners. This could be hard-coded into the class itself or you could use something like an external XML or properties file.
    Kris

  • Movieclip load order FIFO or FILO

    Hi, I recently purchased Zinc to simply have more control
    over the window
    (placement, title, icon - that's all I wanted for this
    project!!) and it is
    causing issues with my program.
    I use the following code to create some movie clips:
    for (var i=0;i<count;i++)
    filePath = pstrFolderPath + swatchNameArray
    paLoadedSwatchClips.push(new swatch(this, pobjMainRef,
    pmcSWFHolder, i,
    filePath, theCounterValues));
    The swatch class has the following code that actually creates
    the clips:
    loadListener.onLoadInit = function(target_mc:MovieClip)
    trace(target_mc + ' is done loading' + ' !! ' +
    thisRef.pnID);
    var mdm = _global.mdm;
    mdm.Exception.DebugWindow.trace(target_mc + ' is done
    loading' + ' !! ' +
    thisRef.pnID, mdm.ASYNC)
    thisRef.pmcLoadedClip = target_mc; // Set reference for
    calling play and
    stop
    thisRef.pobjSetRef.mClipDone();
    // Store height before we put textfield on there
    thisRef.pnMyHeight = target_mc._height;
    thisRef.mCreateCounter(initialCount);
    mcLoader.addListener(loadListener);
    var thePath = _global.mdm.Application.path + swfPath;
    mcLoader.loadClip(swfPath, pmcButton);
    My trace statements in Flash are in order - 0,1,2.....
    I am using Flash MX 2004.
    When I run it through Zinc, and when customer support runs my
    files, the
    trace statements are reversed - 2,1,0
    I guess I'm wondering if load order has changed since 2004
    version... This
    problem is breaking this part of my program when I run it
    through Zinc, and
    want to know if it is Zinc, or an issue with Flash?
    Any help would be appreciated,
    Jason

    Update for anyone who cares...
    It seems flash 7 and 8 are different in how they load movie
    clips. Using an
    older version of Zinc(which uses player 7) works just fine.
    Seems to me,
    Flash 8 loads them first in last out, where Flash 7 loads
    them first in
    first out.
    Good to know for me at least!
    "Jason C Reynolds" <[email protected]>
    wrote in message
    news:[email protected]...
    > Hi, I recently purchased Zinc to simply have more
    control over the window
    > (placement, title, icon - that's all I wanted for this
    project!!) and it
    > is causing issues with my program.
    >
    > I use the following code to create some movie clips:
    >
    > for (var i=0;i<count;i++)
    > {
    > filePath = pstrFolderPath + swatchNameArray
    > paLoadedSwatchClips.push(new swatch(this, pobjMainRef,
    pmcSWFHolder, i,
    > filePath, theCounterValues));
    > }
    >
    >
    > The swatch class has the following code that actually
    creates the clips:
    >
    > loadListener.onLoadInit = function(target_mc:MovieClip)
    > {
    > trace(target_mc + ' is done loading' + ' !! ' +
    thisRef.pnID);
    > var mdm = _global.mdm;
    > mdm.Exception.DebugWindow.trace(target_mc + ' is done
    loading' + ' !! '
    > + thisRef.pnID, mdm.ASYNC)
    >
    > thisRef.pmcLoadedClip = target_mc; // Set reference for
    calling play and
    > stop
    > thisRef.pobjSetRef.mClipDone();
    > // Store height before we put textfield on there
    > thisRef.pnMyHeight = target_mc._height;
    > thisRef.mCreateCounter(initialCount);
    > }
    > mcLoader.addListener(loadListener);
    > var thePath = _global.mdm.Application.path + swfPath;
    > mcLoader.loadClip(swfPath, pmcButton);
    >
    >
    > My trace statements in Flash are in order - 0,1,2.....
    > I am using Flash MX 2004.
    >
    > When I run it through Zinc, and when customer support
    runs my files, the
    > trace statements are reversed - 2,1,0
    >
    > I guess I'm wondering if load order has changed since
    2004 version... This
    > problem is breaking this part of my program when I run
    it through Zinc,
    > and want to know if it is Zinc, or an issue with Flash?
    >
    > Any help would be appreciated,
    > Jason
    >
    >

  • Clip loading order inversed???

    I have a linked clip in my library that is a thumbnail. Well
    the only thin inside is a code to load a thumnail jpg.
    Here is the situation. I use a for loop to add a seri of
    these linked clip displayed on the stage. All the same clip, at
    different pos _y and only the thumb path is pass to the clip as a
    parameter. The question is about the way the clip load. They
    display one after the other, but the load order is reversed. The
    last one added to the timeline is the first one ti load and display
    follow by the previous one and so on. If there is a loop of 10, the
    10th clip load and 9, 8, 7...
    Why? Is that like Java LIFO concept. Last In First Out that
    flash manager it???
    Thanx for you help.
    *** I know I can set the reverse order and attache the last
    one on the stage in first and so on, but I want to understand the
    problem, not doign a workaround... ;-)

    Yes, may be they start to load to closely. There is many
    images, never big, just thumbnails. The size of each is
    approximately the same. I did the test online. Even if on the
    computer it could be different, the real test is online.
    May be I can use the "for in" like GWD said or simply start
    the for with the last item and then i--. Well i'll try it.
    Tanx both for your help
    Ho, also, thank's about the course of the "for in". I didn't
    know that it was working that way "Last item first", and it could
    be useful sometimes. I appreciate your help!

  • Target Load order is not working properly in 11.2.0.2

    Hi,
    Mappings whihc are migrated from OWB10.2 version to 11.2 which contains multiple targets are not working in accordance with the target load order given in the mapping.
    The order in which targets are loaded changes between execution.
    To test is this a problem with migration we had created a smaple mapping containg 3 targets and mentioned loading order in each target table as well as in mapping property.
    The order in which the targets are loaded was random. But when we have 2 targets it seems to be working. But for migrated maps this is also not working.
    Is there any bug reported in 11.2.0.2 for this issue? Any help is highly appreciated.
    Thanks and Regards,
    Pnreddy

    Target load ordering is set to false by default in 11.2.
    You need to set it to true if you want your mapping to use it.

  • Undesired Load order of  FLV and MP3s

    Hello
    I have added a scrolling Flash page with a FLV and several
    MP3 files in each their own player to site below.
    I have set the video to autostart.
    The MP3s are set to not autostart.
    When I export the FLA the swf nicely plays the video first,
    and the mp3s are loading in the background simultaniously.
    When viewing the page in Firefox and Netscape the same
    happens, just as intended.
    Problem:
    But in IE and Safari all the sound files are loading first
    (and not playing) and not until they are fully loaded will the
    video start loading and playing. This results in viewing an empty
    video window for a long time.
    1) Is there are way to make all browsers load the video first
    and play it first?
    2) And in general manage load order of video and audio files
    in a Flash file?
    Thank you on beforehand.
    ggaarde
    http://www.corpstory.com/video.htm

    no, the sounds wouldn't be playing until you used the start()
    method of those sound instances or you assigned the source property
    of your mediaplayer and you wouldn't want to do either until your
    flv completed play.
    in fact, it would be optimal to first load one sound: the mp3
    that follows the flv. then when that sound completed loading, load
    the 2nd sound.

  • Issue in Reversing the payment order in IHC2 T code.

    Hello All
            I am doing REVERSING THE PAYMENT ORDER using IHC2 T code.
    While doing reverse it is creating the payment items for the respective payment order.
    Here is my requirement, need to change the posting date for the creating payment item for the reversal process.
    please let me know if we have any enhancement points to overcome this issue.
    Thank you all.

    Hello Spandana Musham.
         I have also faced this issue with BAPI and I opted for BDC finally.    
    Regards.

  • Load Order in a mapping

    any one has done a SINGLE MAPPING WITH multiple SOURCE TO multiple target
    like      source a TO target a
         source b TO target b
         source c TO target c
    in an order, which is first a should be feeded, THEN b and so ON...
    we have load order in Paris to resolve this, I'd like to know is there ANY way we can do it with 10GR1

    I dont think there is anything like load order in 10gR1 but when i had similer problem we sorted that out with use of process flow by spliiting the mappings.
    If you know a better way out then do let me know.
    I have come across a previous thread in the forum on the same issue which says that we can not control load control WITHIN the mapping and OWB decided it by default in the order in which objects are drppoed on canvas!!!!!!!!!!!!!!

  • SWF Load order.

    Hello all,
    I have a group of FC outputs that I have used to create a virtual tour of my client's showroom here:
    electronic-lifestyle.com
    But the SWF files I have linked in the FXP are loading from back to front.  The last Page is loading first and the first loads last creating some issues.  I have one more pass I need to maker to fix some glitches with the vertical scroll bar and several other points but I need to know if I can adjust the order in which the SWF files load into the page.  I would prefer they load when called for but if that is not possible I would like to load from the first page to the last.
    On an associated thought, is it possible to create a progress bar in FC or Flash that will give the viewer some feed back on the SWF files loading in.  Right now the area is blank until they arrive.
    I have a feeling that this level of control is something achieved in Flash Builder, not in FC.  That is fine, I am planning on importing the file into FB to enable deep linking anyway but since there is no round trip function I figured I would get all of the FC work finished first, then go into FB and make whatever changes need to happen there.
    It is starting to seem silly that the two programs were separated to begin with.  It seems a natural evolution that Catalyst and Builder be joined into the same application sometime in the near future.  Once the round trip issue is taken care of, why not just work toward combining the two apps?
    Anyway, if someone could give me a pointer on the load order issue that would be wonderful.
    Thanks,
    Brett

    dmcdonald wrote:
    > Is there a way to dictate load order of html page?
    No.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • No more reversal of purchase order

    Hi Experts,
    Problem is that after Purchase order is created and approved by both supplier and customer, and AFTER good receipt. reversal of purchase order is being done. I want this more controlled as the GRIR account is being affected. So no reversals to be done after Purchase order approved, and Good receipt.  How to approach this?
    Regards,
    Pauline

    Hi,
    The details will be there in POR12 - Purchase Order - Tax Extension table.
    I want to display the VAT No,CST,ECC No of business partner in the pld of purchase order.For this I tried to display it by relating the database fields.I added the database field CRD7.TaxId2 for displaying vatno.But the vatno was not displayed.

  • Reverse/Delete Purchase order

    Hi All,
    How can we reserve the entries we made to Internal Order? There are purchase document numbers posted in the line item of Internal Order
    Thank you,
    Misbah

    Hi
    PO line item level deletion is possible using ME22 T.code at line item level.
    Select the PO and select line item and menubar----edit and delete.
    In order to reverse the internal orders use the following:
    Accounting--Controlling-Internal Orders---Actual PostingsRepost Line Items--
    Reverse.
    You can also use me98 for complete deletion.
    Assign points if useful
    Regards
    Aravind

  • Why is LR 3.6 reversing the chronological order of my photos?

    This is very odd behavior that started only last week. When I import new photos in the catalog, it reverses the chronological order in which they were taken - i.e., for photos taken on the same day, it would show the latest first. Any ideas? I don't think I changed any settings regarding the importing of photos in the catalog.

    Click the "sort direction" button:
    Hal

  • Mass reversal of work order confirmations

    Hi all,
    Can we do a mass reversal of work order confirmations which we do through IW41 transaction,instead of reversing the confirmations one by one, if so please explain how.
    Thanks & Regards,
    Jegashree

    Dear,
    There is no mass confirmation cancellation Txn available in standard SAP.
    Use
    BAPI_ALM_CONF_CANCEL     Cancel confirmation for maintenance/service order
    Hope it will help you.
    Regards,
    R.Brahmankar

  • Why did Apple OS loose the ability to adjust load order of login items

    In OS X.3.9 I was able to adjust the load order of log in items.
    I can't do this in OS X.4.11. I would like to adjust two items Mozy and Yahoo! Widgets so that they load last. Although all my log in items including them load they hesitate while Mozy and Yahoo widgets load. I would like to make Yahoo widgets load very last and Mozy next to last.

    Another approach which might work would be to delete some, most, or all of your current set of login items and replace them with a single Automator workflow, one set up to open individual applications in a predetermined order.
    The workflow would be comprised solely of separate *Launch Application* actions (from Automator's Finder library) and might look like this:
    1) *Launch Application* -- click the popup button and select the first application you'd like to open.
    2) *Launch Application* -- select the next application you'd like to open.
    3) *Launch Application* -- 3rd app.
    4) *Launch Application* -- etc, etc, until you reach the last application, which could be Yahoo! Widgets.
    From Automator's File menu select Save As > File Format: Application, and add the saved Automator applet to your login items.
    Good luck.

Maybe you are looking for

  • IPad and iPhone Remote app no longer see my AppleTV (1st Generation)

    For months, I've been using the Remote app from my iPad to control my first generation AppleTV. When I got an iPhone 4 and got the Remote app for it, I tried to do the same thing, but now AppleTV will not recognize my iPhone 4, and no longer recogniz

  • How to create a web template with photoshop?

    hie all, I am having a blog Youth Hotspot (http://www.youthhotspot.com/). I actually want to design a web template for this blog using Photoshop. can anyone help me out with the basic tutorials of creating it ?

  • Upgrading Emac 700

    Hi guys i wanted to upgrade my Emac 700 motherboard, processor etc. Can it be done and where? I live in the UK. Thanks. Lee

  • How to unregister an Lr 6 upgrade?

    I purchased an Lr 6 upgrade because I had Lr5.   Now I have decided to go CC with Lr and Ps.    How do I unregister my Lr 6 upgrade serial number in my Adobe account so that I can give it to our niece who has LR 5?   I have already uninstalled the Lr

  • Component Usage (Urgent)

    Hi All, Can a view ui container contain more than one component instance. If so at runtime can i choose any one of the instance and create the component and display it. Mahesh