Any cure for MySQL date entry problem?

On user entry forms with a MySQL database, dates must be
entered as YYYY-MM-DD, which for Americans is counter-intitutive. I
know about the option to use a series of very long drop-down lists
to select each of the pieces, but I find that both cumbersome and
time consuming. I currently am using instructions to the user with
each date field, but that is clutzy.
Does anybody know of a way to use "mm/dd/yyyy"?
Thanks!
Marty

.oO(MartyMatthews)
>On user entry forms with a MySQL database, dates must be
entered as YYYY-MM-DD,
>which for Americans is counter-intitutive. I know about
the option to use a
>series of very long drop-down lists to select each of the
pieces, but I find
>that both cumbersome and time consuming. I currently am
using instructions to
>the user with each date field, but that is clutzy.
>
> Does anybody know of a way to use "mm/dd/yyyy"?
MySQL expects the dates to be stored as YYYY-MM-DD in a DATE
or DATETIME
field. Use your script to convert from MM/DD/YYYY if
necessary, before
you insert the date into the DB. If you're on PHP, have a
look at its
date and time functions, especially strtotime() and
strftime().
Micha

Similar Messages

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

  • Is there any deffirence for master data from flat fime bi 7.0 and 3.5?

    hi friends,
    is there any deffirence for master data from flat fime bi 7.0 and 3.5?
    regards
    suneel.

    you can follow the same 3.x dataflow eventhough u upgrade.
    the only diff
    3.x - would be emulated DS
    7.0 - RSDS
    3.x - file path declared in infopack
    7.0 - is declared in DS (that would be inherted by infopack)
    Infosource - optional - works fine on both the versions
    creating a new DS, it has to be RSDS .. no way out

  • Date format for parameter data entry

    I've just started working on MS SQL Server 2008 for the first time and am using Crystal XI11.5.  I have a date parameter used to pick data.  It works fine but the users are used to entering dates in mm/dd/yyyy format but this parameter forces users to enter using yyyy-mm-dd.
    Normally I am not too concerned as there is the calendar but I have a couple of keyboard users who would like to just enter in the date format they are used to.   I can't find any spot in Crystal to change the data entry format for the dates.
    I do understand that SQL Server does store dates in yyyy-mm-dd format so is this why I only have this option?  Any way to change it?  I do have dates in the report presenting in d-MMM-yyyy format without problem, it's just the date entry prompt.
    TIA rasinc

    The later versions of CR will not allow you to directly edit the SQL statement. You actually have to add a Command and remove the tables from the data source. You can, if you wish, copy the SQL from the "Show SQL Query" and paste it into the Command.
    The reason I tried to delete my previous comment is because it dawned on me (after I made the comment)  that the date picker control itself, won't accept any format other than YYYY-MM-DD.  So, while you can write the SQL to accept a variety of date formats, you won't be able use any of them while using that control.
    The CR date picker control can be found (and therefore replaced by someone w/ more guts than me) in the following locations...
    C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\prompting
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\prompting
    Jason

  • How do I create an installer for my project that allows for variable data entry like a server unc path?

    Hello All,
    I have a questions and a few hours of scouring the internet hasn't brought me much closer to an answer.
    Here's what I want to do. I have created a visual c# wpf application. I want to have an installer that during install time will have a text box or something where I can enter a server path as a string. Basically my application needs to know where to look
    for a server unc path \\server\somesharedfolder that it will be accessing primarily for its work. Secondly, how do I reference said information from within my code.
    I have come across application/user scoped settings, which appears to be what I'm looking for. However I can't find a way to have the installer prompt for a value "Server Path:" __________ that I could type into during installation. So far it appears
    the only way would be to edit the config.deploy file before running the installer, which isn't a big deal but you'd think there'd be an easy way to take in variables during install.
    EDIT: Apparently I can't edit the config.deploy file as I get an error message about the hash not matching.
    Thanks for your help!
    Lance

    Hello,
    The forums I found confusing, didn't know the best place to put this question so I put it here.
    I have found the answer over at stackoverflow and will detail here for anyone who may stumble across the same problem.
    The problem is ClickOnce seemingly doesn't support this feature. Installshield LE either doesn't or does but its incredibly too complicated if all you need is one variable passed to the registry during installation. And it seems the words used for googling
    this particular problem will never lead you to the solution.
    So here's how to do it (we will be first adding the Visual Studio Installer Add-on to restore original installer project functionality):
    1) Inside of visual studio 2013 go to Tools -> Extensions and Updates
    2) On the left-hand side click on Online -> Visual Studio Gallery
    3) In the upper-right search box search for "Visual Studio Installer"
    4) Download the extension labeled "Microsoft Visual Studio Installer Projects"
    5) Install, then open a new project under Templates -> Other Project Templates -> Visual Studio Installer -> Setup Project
    6) Now for the gold. In the solution explorer there are icons in a bar just below its title bar, highlight till you see "User Interface Setup" and open it.
    7) Now you can right click on Start, Progress, End etc any Category heading and hit Add Dialog.
    8) From here for my purposes, I used TextBoxes A
    9) Once you add it, click on it and observe its properties window. You will see Label, Property, and Value. Make a note of the property name as it will be used to store the data directly into the registry. *Note: there appears to be no way to perform data
    validation using the built in textbox dialogs, users can enter whatever they want and move on.
    10) Go to the registry editor on the same icon bar under solution explorer.
    11) Specify your registry folder, make a new value (I used string) and name it whatever you like. In the value section enter the property label formatted as such   [EDITA1]   depending on your value. 
    12) Now when you run the installer for your project, it will take data into that field and place it into the registry provided it has access to that key with the permissions you run the program under.

  • Any fix for the "remembering passwords" problem with MAIL?

    I've been following the other threads on this topic. I am a new Mac user (all of 5 days) with 10.5.2 preinstalled on a macbook pro, so this is not a migration problem. Applecare has been unable to resolve the issue. My setup is a Verizon FIOS POP account. I've tried all the repairing, creating keychain suggestions. My incoming and outgoing accounts function properly, then they mysteriously forget the login credentials. Is there any fix for this, this seems absurd coming from a PC background? Thanks.

    I just signed up for FIOS and am not experiencing your problem (had enough other ones instead).
    Go to mail preferences ~ click on a mail account ~ click on the advanced tab. The only settings that worked for me were: port 110 SSL OFF, authentication: Authenticated POP (APOP). If I remember correctly when I first set this up another window opened and I typed in my password and never had to do that again.
    Hope this helps.

  • Where Used List for Master Data Entries

    Hi folks,
    I am looking for a FM, method, etc. that gives me a list, that shows, where a certain master data entry of an InfoObject is used. The BW system makes this check implicitly, when trying to delete master data, but I couldn't get behind the logic yet.
    Anyone here with helpful hints?

    Hi Durgesh,
    Thank you for your answer!
    Unfortunately the two mentioned FMs are not helpful for me. I am looking for a where-used-list of master data entries, but not of InfoObjects. For example I am looking in which InfoCubes the measure pieces of InfoObject '0UNIT' is used.

  • Is there is any setting for export data from database- datasource

    Hi ALL
    i am using crm 2007 system in there , i had activated opportunities OLTP reports , here but i can not able to get the data in reports , then i check the respective data source in RSA3 it showing zero records,
    is there is any procedure to getting data from data base tables to data source.

    you can follow the same 3.x dataflow eventhough u upgrade.
    the only diff
    3.x - would be emulated DS
    7.0 - RSDS
    3.x - file path declared in infopack
    7.0 - is declared in DS (that would be inherted by infopack)
    Infosource - optional - works fine on both the versions
    creating a new DS, it has to be RSDS .. no way out

  • PHP/MySQL Date Format problems

    Dear all,
    In the past I successfully formatted a date from a Unix date format to my own desired output by using a PHP command as such:
    echo date($row_rsGNresults['date'], "Y F j"); 
    For a reason unbeknown to me, this no longer works and no matter what I try, the page always returns the date results in yyyy-mm-dd format.
    I've even tried using date format in the SQL query:
    SELECT * DATE_FORMAT('date', '%Y %F %j') AS showdate FROM gemnews_tab WHERE language LIKE %s AND entry LIKE %s AND works LIKE %s AND category LIKE %s ORDER BY date ASC 
    I've even tried installing various Dreamweaver extensions for date server formats (like Kaosweaver's) to no avail.  I've checked MySQL and the field is definitely set to 'date' and the dates are in yyyy-mm-dd format.
    Does anyone have any suggestions?  Would it matter that the dates are from the 18th century?
    Many Thanks
    J
    Message was edited by: Günter Schenk. Reason: the "PHP command" code was invisible

    Try this:
    <?php echo Date("M d, Y",
    strtotime($row_Recordset1['review_date'])); ?>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "newhorizonhosting.com" <[email protected]>
    wrote in message news:et7lf6$q8a$[email protected]..
    > Can someone help me out here. I am trying to format my
    date. My MySQL is a
    > "datetime". How ever I would like to display only the
    month, day, year like so
    > "Jan,15,2007"
    >
    > Here is my current code, what should I add to make it do
    what I want.
    >
    > <?php echo $row_Recordset1['review_date']; ?>
    >
    > Thanks
    >

  • Java datatype for MySQL DATE?

    Hello!
    I want to read the content of a database table and store it in a linked list.
    My problem is that i dont know what datatype in Java to use for storing the MySQL type DATE.
    Can i use different types for that purpose? Which type is best?
    Thank you

    mattias_westerberg wrote:
    Hello!
    I want to read the content of a database table and store it in a linked list.
    My problem is that i dont know what datatype in Java to use for storing the MySQL type DATE.
    Can i use different types for that purpose? Which type is best?
    Thank you[java.sql.Date|http://java.sun.com/javase/6/docs/api/java/sql/Date.html]
    The best way to store it depends on what you want to do with it. Ultimately you could store it however you wish: bytes, a string, serialized to disk somehow, but a java.sql.Date is what your JDBC API will be taking so it would be convenient to use that if you want to modify the date and store it back to the database.

  • Data entry problem with Date Book

    am suddenly unable to enter data into the Date Book. Every keystroke results in a new 'untimed event' line being placed at the top of the screen.
    I have loaded the latest firmware upgrade and tried warm and cold re-boots.
    Any help appreciated
    (Tungsten-C )
    Post relates to: Tungsten C

    Hard reset tried several times. No change in the problem - before or after re-synching with desktop.
    It appears that the Palm's program is no longer recognizing that keystrokes are being entered where there is a time (each key entry triggers a new and separate 'no-time' line at top of screen.
    I am abler to enter data on computer and then transfer it to the Tungsten via 'synch'. Such data cannot be edited from the Palm (same result as above).
    Also - if I enter a time to a 'no-time' entry, it too cannot then be edited or added to.
    Help still needed,  Thanks
    Post relates to: Tungsten C

  • Any hope for recovering data fr. Micro SD Memory card?

    this isn't really a powerbook G4 question, but it does relate to data i've had on there.....
    I mistakenly pressed the yes button on my mobile phone when it asked if it could reformat the disk because it couldn't recognize or read the card.
    Is there any hope of recovering the data or is it gone forever?
    I'm hoping that there's someone out there with a solution.
    Thanks to anyone who may be able to help me and if I can't retrieve the data, then I must humbly accept that it's gone and to let it go.....
    Brande

    there's a website flashfixers.com.
    They have great products to help one recover everything and anything.
    I downloaded the demo version ImageRecall to test it out and see how it would be.
    Easy to use. It lets you know how many files were retrieved for each option (data, audio, image) within the drive you choose. It gives you 10 recovered files as a teaser. You need to buy the full version to recover all the files that are okay for recovery.
    If you haven't heard about this recovery software, check it out.

  • User needs to see only one E&A database for manual data entry

    Hi Experts
    Please can you suggest a solution for the following requirement.
    Requirement is that when a user log in to the Entry & Approval to entry the manual KPIs he should see only the one database which he is allowed to instead of drop-down and select the database which he has to enter the data as multiple models are created to Entry& Approval and Scorecards.
    Tried to create model connection for the model and assigned to the user and when i login with that users also all the databases are visible and have to select a database from the list of databases available for entry&approval.
    Thanking you,
    Regards
    Vinay.

    More information, after running a profile trace the following 2 statements, the column with the default on a UDF returns a row while the other default does not.  This might be the cause of this bug.  Is the same logic to generate the object on
    the subscriber used to generate the conflict table?  
    exec sp_executesql N'
    select so.name, schema_name(so.schema_id)
    from sys.sql_dependencies d
    inner join sys.objects so
    on d.referenced_major_id = so.object_id
    where so.type in (''FN'', ''FS'', ''FT'', ''TF'', ''IF'')
    and d.class in (0,1)
    and d.referenced_major_id <> object_id(@base_table, ''U'')
    and d.object_id = object_id(@constraint, ''D'')',N'@base_table nvarchar(517),@constraint nvarchar(517)',@base_table=N'[dbo].[repTable]',@constraint=N'[dbo].[DF__repTable__id__117F9D94]'
    exec sp_executesql N'
    select so.name, schema_name(so.schema_id)
    from sys.sql_dependencies d
    inner join sys.objects so
    on d.referenced_major_id = so.object_id
    where so.type in (''FN'', ''FS'', ''FT'', ''TF'', ''IF'')
    and d.class in (0,1)
    and d.referenced_major_id <> object_id(@base_table, ''U'')
    and d.object_id = object_id(@constraint, ''D'')',N'@base_table nvarchar(517),@constraint nvarchar(517)',@base_table=N'[dbo].[repTable]',@constraint=N'[dbo].[DF__repTable__somein__1367E606]'
    Pauly C

  • I confront the message "blocked plug-in" on most included windows of safari browser internet sites on my old Macbook running snow leopard 10.6.8. Adobe flash updates are disconnected by Safari before they can be downloaded. Any cure for this?

    I don't know if this question has already posted but if not here is my problem: I repeatedly get a blank screen except for the error message "blocked plug in" when browsing in safari and trying to view web page included videos. Is this an Adobe flash player rejection? I keep getting Adobe flash player update messages but when I click download this is blocked by Safari or OS security. Any user-fix out there?

    Which Safari? Which Flash? I'm running Safari  5.1.10 (6534.59.10) w/Flash Player 13.0.0.214 and am not getting any of those messages. To get the latest Flash Player, go to http://get.adobe.com/flashplayer, download the latest version, and install it.

  • Any tips for restoring data on new boot disk?

    I'm replacing the boot disk on my PB G4. Rather than cloning the old disk, which functions fine, I'd rather do a clean install of Tiger and my apps just to clean out some of the garbage. Any advice as to the best path to take when it comes to moving data / prefs / settings for the following apps?
    Address Book
    Mail
    iCal
    iSync
    iPhoto
    iTunes
    Safari
    and especially Keychains
    Now that I think about it, I guess I'm trying to move my home folder over and replace the root account that reinstalling the OS is going to do.

    I guess I should clarify. I don't create a disk image when I clone a drive with Disk Utility. What I do is simply take the boot drive and drag it to the field in the restore tab that says "source" and drag the external disk to the destination. I check the erase destination box and click on the restore button. Then I do not touch the Mac until the restore process is complete.
    I have done this on at least four different Macs and tested each copied disk by rebooting it and actually using it.
    That being said, I think SuperDuper is a much more useful program for backkups, especially if you pay the registration fee and set it up to do automated backups on a daily basis.

Maybe you are looking for