Order by date clause works in dataset test but not in actual page.

I have a page where I am trying to display the name ,date, and location of our next event by sortig the data
by date and using a where clause to exclude previous events.
I set up the recordset in DW cs4 and push test and it works fine.
Here is the mysql query :
SELECT events.NAME, events.LOCATION, events.`DATE`, events.EDATE
FROM events
WHERE events.EDATE > now()
ORDER BY events.EDATE
date field is just string data
edate is actual date I want to sort on
I have tried using edate=> currdate() and that returns the same incorrect results.
I am using Dreamweaver CS4 and mysql 5.1.
When I use my web host utility for mysql 5.1 the same query works there also.
It also works inside my localhose mysql 5.1
The only place it doesn't work is in the page.
link to page
http://www.taasports.org/test.php
I temporarily have the full dataset on the lower part of the page and it is not ordered.
Please let me know if I need to add more info etc. I am really stuck with this.
Thanks in advance
Keith
[email protected]

Thank you very much Bregent. That fixed it. I was
not looking at the code and it appears dreamweaver was adding a new statement everytime I change the s
ql statement. I deleted all of them except the correct one and now it works.
Thanks again
Keith

Similar Messages

  • HT1937 my cellular data connection works in one location but not in another

    Why does my iPhone's data connection work at other places but not at work?
    It works sometimes.

    Good question to ask your cell phone provider.. Maybe the material the building is made of is blocking the cellular data signal.

  • Db sequence work in bc4j tester but not at jsp editform? !

    According to "HOWTO#:Use BC4J With or Without DB Triggers",i use db trigger and db sequence to realize insert primary key value from sequence.
    It work fine at bc4j tester ,however at jsp it produce error. error information:
    Error Message: ORA-01401: 2eHk5DV56TSZAP9}4s ORA-06512: TZline 1
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO FYZ_YZJBK(DZ,DG,BZ,FDZYF,FXF) VALUES (:1,:2,:3,:4,:5) RETURNING BH, BZ INTO :6, :7; END;".
         void oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(oracle.jbo.server.EntityImpl, int, oracle.jbo.server.TransactionEvent)
         void oracle.jbo.server.EntityImpl.doDML(int, oracle.jbo.server.TransactionEvent)
         void YFGLBC4J.YFJCImpl.doDML(int, oracle.jbo.server.TransactionEvent)
         void oracle.jbo.server.EntityImpl.postChanges(oracle.jbo.server.TransactionEvent)
         void oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(oracle.jbo.server.TransactionEvent, com.sun.java.util.collections.ArrayList, com.sun.java.util.collections.HashMap, com.sun.java.util.collections.ArrayList, boolean, boolean)
         void oracle.jbo.server.DBTransactionImpl.postChanges(oracle.jbo.server.TransactionEvent)
         int oracle.jbo.server.DBTransactionImpl.commitInternal(boolean)
         void oracle.jbo.server.DBTransactionImpl.commit()
         int oracle.jbo.html.jsp.datatags.CommitTag.doStartTag()
         void tagcomponent.DataHandlerComponent._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.GetParametersRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.EvermindPageContext.include(java.lang.String)
         int oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag()
         void yfgl.yfjc__browse._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    Who can tell me why? Thank in advance! Urgent!

    David:
    Your exception should include the stack trace of "## Detail" exception. Could you post that for us to look at? If you don't have a detail exception, let me know as well and we'll see what we can do.
    Thanks.
    Sung

  • XML data connection works in the preview, but not in the final swf

    Hello,
    I have set-up a dashboard with an XML data connection button to load XML data from an internet source. Everthing works perfect in the preview-swf within Xcelsius 4.5. But pressing the button in the exported swf does not have any effect. The dashboard is busy for 2 seconds, but no data is loaded. What could be the reason?
    Thanks.

    Yes, the location is registered. The problem also occours when the swf is opened directly on the web server where the xml-source is running.

  • Me edge animate project works when I test, but not when I publish. Please help.

    I feel like this has happened to me in the past, but I just cannot get the thing to work when I post it online. It's just a blank page, all white. I think there might be something in the code of one of the .js files that I need to change.
    ??  I saw something about the phrase 'use strict' but I can't find that code anywhere.
    There must be something I'm forgetting. I put all of the published files up on the server, and I just can't access it. Any help would be seriously appreciated.
    Thanks.

    Can you share the website link so that we can see what the issue is?
    Regards,
    Vivekuma

  • CF Component work on local computer but not on actual web.

    I'm using CF9 on windows 7 professional. when ever i execute from a form to the action page i get this error:
    Could not find the ColdFusion component or interface VAFOINS_NEW.Componet.display. Ensure that the name is correct and that the component or interface exists.
    It works fine on my local computer, however the Componet is not invoking properly when on the actual web. Any suggestions?
    THE CFC syntax is below:
    <!--- Generated by Adobe Dreamweaver CS5 11.0.4.4993 [en] (Win32) - Fri Sep 23 2011 15:56:13 GMT-0400 (Eastern Daylight Time) --->
    <cfcomponent displayName="volno" hint="List all FCN, NS, FOID etc. Items By way of volno input">
    <cffunction name="volno" returntype="query">
    <cfquery name="volno"> select TRIM(CONCAT(name.fname,' ',name.xholy))AS Brother, name.foiid, fcn.*, nspay.*, Foidpay.*, otherpay.*, CONCAT(otherpay.othpayamt,' - ',otherpay.othpaytitle) AS otherpay, fcnsales.salesid,(fcnsales.salesamt) AS FCN_SOLD, salesdate
    FROM name, fcn, fcnsales, foidpay, nspay, otherpay
    WHERE 0=0
    AND Fcn.fcnvolno = '#form.volno#'
    AND name.foiid= fcnsales.salesfoiid
    AND FCN.fcnid= fcnsales.salesfcnid
    AND name.foiid= nspay.NSPAYfoiid
    AND nspay.nspaydate= fcnsales.salesdate
    AND name.foiid= FOIDPAY.foidpayfoiid
    AND FOIDPAY.foidpaydate= fcnsales.salesdate
    AND name.foiid= otherpay.othpayfoiid
    AND otherpay.othpaydate= fcnsales.salesdate
    ORDER BY name.city desc, name.foiid
    </cfquery>
    <cfreturn "#volno#">
    </cffunction>
    <!---NEW FUNCTION--->
    <cffunction name="total" returntype="query">
    <cfquery name="total">
    SELECT name.*, fcn.*, sum(fcnsales.salesamt) AS FCN_SOLD_This_Issue, salesdate
    FROM name, fcn, fcnsales
    WHERE 0=0
    AND Fcn.fcnvolno = '#form.volno#'
    AND name.foiid= fcnsales.salesfoiid
    AND FCN.fcnid= fcnsales.salesfcnid
    </cfquery>
    <cfreturn "#total#">
    </cffunction>
    <!---NEW FUNCTION--->
    <cffunction name="total_NS" returntype="query">
    <cfquery name="total_NS">
    SELECT SUM(nspay.nspayamt) AS total_ns
    FROM nspay
    WHERE 0=0
    AND nspay.nspayvolno= '#form.volno#'
    </cfquery>
    <cfreturn "#total_NS#">
    </cffunction>
    </cfcomponent>
    My action page which invokes the cfc has the code below:
    <cfinvoke
      component="VAFOINS_NEW.Componet.display"
      method="volno"
      returnvariable="volno">
    <!--- CFC Query --->
    </cfinvoke>
    <cfinvoke
      component="VAFOINS_NEW.Componet.display"
      method="total"
      returnvariable="total">
    <!--- CFC Query --->
    </cfinvoke>
    <cfinvoke
      component="VAFOINS_NEW.Componet.display"
      method="total_NS"
      returnvariable="total_NS">
    <!--- CFC Query --->
    </cfinvoke>
    <cfquery name="total_FOID" >
    SELECT SUM(foidpay.foidpayamt) AS total_foid
    FROM foidpay
    WHERE 0=0
    <!---AND foidpay.foidpaycity='richmond'--->
    AND foidpay.foidpayvolno= '#form.volno#'
    </cfquery>
    <cfquery name="total_other" >
    SELECT SUM(otherpay.othpayamt) AS total_other
    FROM otherpay
    WHERE 0=0
    <!---AND otherpay.othpaycity='richmond'--->
    AND otherpay.othpayvolno= '#form.volno#'
    </cfquery>
    <cfquery name="total_FOIClass_Attendance" >
    SELECT COUNT(CLASSFOIID) AS foic_attendance
    FROM foiclass
    WHERE 0=0
    <!---AND foiclass.classcity='richmond'--->
    AND foiclass.classvolno= '#form.volno#'
    </cfquery>
    <cfquery name="List_Class_Attendance" >
    select trim(CONCAT(name.type,': ',name.fname,' ',name.xholy,' ',name.slave))AS Brother, name.foiid, foiclass.classfoiid FROM name LEFT JOIN foiclass ON foiclass.classfoiid= name.foiid WHERE foiclass.classvolno='#form.volno#' order by name.type, brother
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>VOL NO Results</title>
    </head>
    <body>
    <!---CFML Below--->
    </body>
    </html>

    My guess is a problem with the dot path notation. I'm always fighting with this. Most likly your local computer is using a virtual directory named VAFOINS_NEW (http://127.0.0.1/VAFOINS_NEW/) and your production site points directly to the VAFOINS_NEW directory (http://somesite.com/). On your live site the dot path notation you are using is expecting http://somesite.com/VAFOINS_NEW/. Dot paths are a pain and whoever invented them should retire as he or she has done enough damage.
    I usually do something like this (I'm typing from memory so there will most likely be syntax error or two but hopefully you'll get the idea):
    <cfset variables.dotpath="" />
    <cfif listFindNoCase(cgi.script_path,"VAFOINS_NEW","/")>
         <cfset variables.dotpath="VAFOINS_NEW." />
    </cfif>
    <cfinvoke component="#variables.dotpath#Componet.display"... />

  • BAPI works in test but not in production

    3rd party software uses BAPI to input data into SAP. This works in test but not in production. We have checked that user 3rd party software uses have same rights in both systems. BAPI is standard SAP BAPI. We can connect to production with SM59.
    Is there anything in SAP that could cause this?

    No. Better you check with the PATCH Levels.. etc to know is there any changes in the BAPI (BASIS people can help you) > Otherwise go to SYSTEM in the MENUBAR> STATUS--> Compare the Status there
    After that check the data once...
    Reward if helpful...

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

  • 3rd gen iPod Nano will not sync with latest version of iTunes. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    3rd gen iPod Nano will not sync with latest version of iTunes on new laptop. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    Never mind, I think. I think I figured it out. There was 1 song (out of > 900!) that somehow had been purchased with the other ID - I have no idea how. Once I deleted that song, it stopped asking.
    There may be something with the newest iTunes version too. I didn't think in older versions that the "On this iPod" list of songs was greyed out. But at least it syncs ok.

  • Scrolling Header works in Visual Studio but not on Report Server 2008

    2008 R2 Reporting Services. My scrolling header works in Visual Studio but not when deployed to the Report Server and viewed in IE 9. I have read most every post on this issue and can't find a solution. I have the fixed data properties
    set correctly. Any suggestions?
    Help appreciated! 
    Linda

    Hi Linda,
    As a suggestion, I would try to delete the deployed version and instead of deploying ther RDL file, i would try to upload the file and test it.
    If the issue exisit, then I would download the exisiting version from the reportserver and compare the xml versions of the two reports and check if the propoerty is getting over written while deploying.
    HTH,
    Ram
    Please vote as helpful or mark as answer, if it helps

  • Trouble playing .swf - works offline in browser but not online on website

    Hi there,
    I'm having trouble displaying a flash .swf file properly on my website: http://dreamriderproductions.com/fun/game-test/
    When I view the .swf file locally on Chrome, I get a text box to enter my name and I can click Go and keep playing the game. For some reason, when it's up on the website, there's no text box so I can't progress. Can you?
    Background: The game did used to connect to a database, but the upgrade of our website (and relocation of the swf) seems to have broken the database connection. People couldn't progress past the first screen presumable because the information on which city they were in couldn't be submitted to the database. We've got a version of the game with the database connection disabled and so the game should now work - it works locally for me but not on the website!
    Any ideas?
    Thanks
    Sion

    The code you have posted is not the same code as used in:
    <div id="gallery">
    in the link above.
    The reason that the Flash is not displaying in FF is that the portion of the code used by FF was omitted. The code currently used on the page only works in IE.
    I'm no great fan of the IE conditional statements used in the code you posted so I don't blame you for not using it. But you do need to provide something for FF.... the old, out dated method would be to add and <embed> for FF... here's the newer method..
    So either use code you posted above or better yet, get rid of that and replace the current <object> with
    <div id="gallery">
    <object id="FlashID" data="flash/201.swf" type="application/x-shockwave-flash" width="958" height="242">
       <param name="movie" value="flash/201.swf">
       <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="6.0.65.0"/>
    </object>
    </div>
    Give that a try. Will work in both FF and newer IE versions.
    Best wishes,
    Adninjastrator

  • My apple id password only works on my mac but not on my iPhone or iPad

    my apple id password only works on my mac but not on my iPhone or iPad what do i do?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)

  • Site works in the app, but not in the browser.

    Hello iWeb experts,
    I've got problems.
    Last night I published my site. And while it appears, and functions, properly in my iWeb app, it doesn't do the same in Safari, Firefox, and Internet Explorer.
    Two issues...
    FONTS
    I chose Bellamie, Univers Condensed, and Marydale as my fonts. From reading these forums, I've discovered those won't wysiwyg on other computers if the fonts aren't available and open on them. So my two choices are to make every bit of text a graphic or to use a set of more universal fonts, correct? So my questions are...One, is there a list somewhere of fonts that will work in any browser? And, two, is there a short-cut, or easy way to transform type into a graphic without having to create image files?
    FUNCTIONS
    Here are the functions that work fine in iWeb but have gone haywire in all of the browsers I tested...
    • The type in one nav link appears smaller than all the rest.
    • Some links are active, others are not.
    • Rollover highlighting works on some links, but not others.
    • Most of the rollover links appear in the proper static color, a few do not.
    I've tested these functions on three Macs, one PC, and in the three browsers mentioned above. All of them show the exact same problems. So something must be going wrong with iWebs coding, or my host server musn't like iWeb.
    Any thoughts, suggestions on these two issues? Thanks much for any advice.
    John
    PS - For reference, see: www.johnrunk.com

    Fascinating, Kirk (+he types with one raised eyebrow+).
    QuickTimeKirk wrote:
    When I drag across your page most of your links do not change. The "text" portion of them doesn't change, either. Something is covering them.
    I can see that. But for the life of me, I don't know what could be covering those links. In my app, when I click in the area of the links, the type is the first item selected. Unless, possibly, it could somehow be the faint reflection of my black-and-white image (me & the ground I stand on). Hmmm...
    QuickTimeKirk wrote:
    Single click (outside the boundaries of your page contents) and an "outline" will appear. It shows the image file dimensions and locations.
    This I don't see. An outline? As in "an object outline," or as in "a list of dimensions and locations?" When I click outside my page contents, I get nothing.
    Thanks, QTK. I truly appreciate your troubleshooting here.
    John

  • HT5787 How can I change an old email to a new one? For some reason my old email comes up on my iPhone - and I don't get access to change to my new email which I have on my iCloud account on my pc. My AppleID works on my pc, but not on my iPhone!

    How can I change an old email adress on my iCloud accout to my new email (the same as on my pc), as long as my Apple ID works on my pc but not on my iPhone?
    Br
    Finn

    You would have to change it back to your old email address in order to turn off "Find My iPhone" on your devices. After you changed it back to your old address and deactivated "Find My iPhone" (activation lock) you could change your Apple ID to your new address again. Now it should wok on all your devices.

  • G4 iBook works in Safe Mode, but not in regular mode (stuck on blue screen)

    14" iBook G4 1.2GHz with 1 gig of RAM.
    I recently had an issue with this machine in that the image on the screen would freeze but the cursor would be able to move around. This was narrowed down to an issue with the logic board. I wanted something a little more permanent than a shim, so I sent the board in to have it reballed.
    After installing the maching back into my iBook, it seemed to work fine until I applied a software update to the machine.
    It was then that I got to experience the first of many kernel panics.
    Restarting at different times always brought me to the dialog box which states that the machine needed to be restarted in multiple languages.
    Running the Apple Hardware Test off my install disks yielded this error code: 2ATI/2/4:113-xxxxx-125
    I have no idea what that means. I do know that just before I got the results of the test, the screen changed to all kinds of colors. It was only for a few seconds and then the results (with the error code) were displayed.
    Still, not sure what to do next, I tried resetting the PRAM. I also tried resetting the NVRAM.
    I also tried booting up into Safe Mode which actually worked. There were no issues with the machine and everything seemed to be working fine.
    When I tried to restart the machine in regular mode, I'm taken to the infamous blue screen and the machine just stays there. When I let the machine stay off overnight, it booted up normal, but after applying the software update, the machine was in kernel panic again.
    I've tried running fsck, but nothing changes.
    I'm still not sure why it seems to work in Safe Mode but not in regular mode.
    I'd appreciate any suggestions or ideas.

    Hi,
    A couple of the things that are disabled in safe mode are AirPort and non Apple startup items. The easiest thing for you to test is the AirPort card. Shut down and remove the AE card under the keyboard. See if it starts. If it does your AE card is bad. If not, start in safe mode and go to System Preferences>Accounts>youraccount and disable all non Apple startup (LOgin) items by clicking on them and then the minus sign. Restart normally and see if it will start.
    John

Maybe you are looking for

  • Can't open some (not all) photos in Develop

    Hey all, I'm running Lightroom 1.1 on my Powerbook G4 (1.67ghz, 2 gigs of ram). Recently had a data base corruption problem, reverted to my backup, everything seemed fixed and working fine. However, it turns out that some files (not all) can no longe

  • Macbook pro 13" CPU A Diode temperature

    Hi all, I have recentlypurchased MBP13 inches (Intel Core i5 2.4 ghz, 500 G HDD, Internationalkb). I observed a difference in CPU heating behaviour compared to mypreviously used MBP 15" (2008 version). So I did the following test: 1. CPU Temperature

  • Errors with jMaki faces-config.xml - Application won't run.

    I'm getting a couple errors when trying to run my jMaki enabled applications. I tried for a week to find a solution, but not luck. Below is the server log. Does anyone have any ideas? validateJarFile(C:\Documents and Settings\grover\netbeans\6.0\work

  • Is close() blocking in nonblocking SocketChannel?

    Hi I'm writing a socket server based on the NIO package. I saw in several NIO code samples that the SocketChannel close() method is invoked inside the NIO select loop, which should only contain nonblocking calls. However, I couldn't find any document

  • Making a Java Command Line Bot...Loop?

    Okay, so I'm working on just a fun bot, I have two questions: 1. Is there any function to get a random number, 1-5 or something like PHP: rand(1,5); 2. Okay, so I have some things that they can type, but I want them to be able to keep talking instead