Help please !!  Need to insert date automatically in form

I have been trying unsuccessfully for a week to automatically
capture today's date on a form. I can display a date on screen but
it will not insert date into mySQL db. All other information is
inserted as expected.
Am I just whistling in dark? Is there no way to eliminate
user input for the order date field?
I have looked throughout the forums and no luck.
Anyone have any ideas about how to do?
Thanks,
Dale :-)

You can use a timestamp function within your MySQL table, but
remember you can only use the timestamp function ONCE in a table.
Using the timestamp Function:
Set the field type to TIMESTAMP. You can also set the default
to CURRENT_TIMESTAMP and the attributes to ON UPDATE
CURRENT_TIMESTAMP if you want the timestamp to change when the
record is updated.
If you want to record times more than the one time you are
using the timestamp and you are using PHP/MySQL or PHP/MySQL ADODB
(InterAKT's PhAKT Extension), then try this:
http://chuckomalley.net/help/insert_date_help.php
That gets the time into the MySQL Database. Next thing you'll
want to do is to have it display the time the way you want it. The
default will display it as yyyy-mm-dd hh:mm:ss and you may not want
it that way. To display it the way you want it try this:
http://chuckomalley.net/help/display_formatted_date.php
For the specific syntax on using this, refer to the online
MySQL Manual and search for DATE_FORMAT() at
http://dev.mysql.com/doc/mysql/en/index.html
Cheers
Chuck

Similar Messages

  • Help Please -Need video to NOT automatically load when not using autoplay feature

    Hi, I am hoping someone can help me or point me to the right
    place to find what I need!
    I use the standard skins in Flash for putting videos onto a
    webpage but I am having problems when I use more than one video on
    a page.
    I have the videos set to autoplay -false, however the page
    takes forever to load because the videos still download so they are
    'ready' to play. (Of course this is what you want when you have one
    video on a page but it is not helpful for more than one video...)
    I have looked through the parameter options for the flv and
    the HTML publish setting but can not find anything in here -I have
    also tried to search through this forum and have tried "googling"
    but no luck. Perhaps I am using the wrong terminology for my search
    but I am not sure what the correct terminology is.
    I am pretty sure that I need to go in to the actual flash
    file of the skin and alter it to suit my needs but I am not sure
    what code I need to do this etc....
    I am using Flash CS3 and using the Actionscript3 skins. I
    know how to access the standard flash skin flash files and alter
    them to customize them but my knowledge of code is not the best.
    If someone could help me out I would really appreciate it!!

    Friend,
    I have maintained the means of transport to the tranportation lane
    Regards
    KRN

  • Can it be possible that a user insert data by a form and then create a PFD?

    Can it be possible that a user insert data by a form, then store the data in the Data Base and finally create a PFD?
    If this is possible with BI Publisher, what do i have to do to link the form with the BIPublisher interface?
    Regards

    Hi
    If you just have a PDF form and do not need to pre populate data then all you need do is:
    1. Add a submit button to the PDF - you can use the full Adobe product or a BIP API
    2. Load the PDF as a template with a dummy data source.
    The user can then run the "report" as usual. When they have completed the form they can hit the Sumit button on the form. Adobe will then scrape the data out of the form in an XML format and post it to the URL you added. At the other end of the URL you need a servlet to accept and process the XML data.
    If you need to prepopulate the form you can attach a datasource to the PDF template but ensure the fields are preserved after running the form for the user through the config options.
    BIP does have APIs to populate drop lists, etc but these are not exposed thru through the BIP UI.
    I'll try and write this up for the blog and OTN soon
    Regards
    Tim

  • Inserting data from jsp form to multiple tables !

    Hi,
    I want to insert data from jsp form to two tables
    tables are
    (1) Form
    formId (PK)
    deptName
    (2) Data
    formId (FK)
    sNo
    description
    itemCode
    and the problem is that i want to save information form a jsp form to above two tables and i have only one form.
    so how do i insert data from a jsp form to multiple tables.

    You already know what your form in the jsp will be and what fields they are. You also already know what your database looks like. Using one form, you should be able to break the data down, and give it certain ids and/or names, so that when the form is submitted, you retrieve the correct values corresponding to a specific field and insert it.
    Unless there is something else I am not catching, this seems pretty straight forward.

  • Help needed to insert data from different database

    Hi ,
    I have a requirement where i need to fetch data from different database through database link .Depending on user request , the dblink needs to change and data from respective table from mentioned datbase has to be fetched and populated .Could i use execute immediate for this, would dblink work within execute immediate .If not , could pls let me know any other approach .

    What does "the dblink needs to change" mean?
    Are you trying to dynamically create database links at run-time? Or to point a query at one of a set of pre-established database links at run-time?
    Are you sure that you really need to get the data from the remote database in real time? Could you use materialized views/ Streams/ etc to move the data from the remote databases to the local database? That tends to be far more robust.
    Justin

  • Need to insert data in 2 tables thro stored procedure

    I need to create a stored procedure which will insert data in two tables. The procedure will get
    its inputs from an Oracle Developer Form which will be inserted into the tables.
    The 2 tables structure:
    1.FEES_MASTER
    Name Null? Type
    FEES_ID NOT NULL NUMBER(8) -- Primary Key
    CS_ID NOT NULL NUMBER(8) -- Class Student ID; An enrolled student
    REC_DATE NOT NULL DATE -- Fees receipt date
    REC_AMOUNT NOT NULL NUMBER(6) -- Fees receipt amount
    2.FEES_DETAIL
    Name Null? Type
    FEES_ID NOT NULL NUMBER(8) -- Foreign Key
    MONTH NOT NULL DATE -- First of each month to identify fee month
    Scenario:
    A student submits fees for 3 months through Master/Detail related blocks in a Developer Form as
    Under:
    Fees Master
    Fees ID : 11002
    Class Student ID : 356
    Receipt Date : 06-JAN-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11002 01-JAN-2001
    11002 01-FEB-2001
    11002 01-MAR-2001
    I need to check each fees detail record for fees month duplication as well before inserting new records.
    How can this be achieved?
    Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Fan Liu ([email protected]):
    create primary key in the detail table. i think it's FEES_ID + MONTH. then mark the columns in Forms as primary key property true, then call check_record_uniqueness built-in in on-check-unique trigger.<HR></BLOCKQUOTE>
    Thanks very much. But what I need is to ensure transaction integrity thro stored procedure. The system allows a certain CS_ID (i.e. Class Student ID, which is assigned a new one to every student annually) to submit fees for 12 months only, because a student stays in a class for a year. The 2 columns in the FEES_DETAIL table are composite primary key which only ensures that a certain FEES_ID will not be repeated for the same month. But suppose:
    1)this data already exist in the tables:
    Fees Master
    Fees ID : 11002
    Class Student ID : 356
    Receipt Date : 06-JAN-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11002 01-JAN-2001
    11002 01-FEB-2001
    11002 01-MAR-2001
    2)And this data is currently being inserted:
    Fees Master
    Fees ID : 11300
    Class Student ID : 356
    Receipt Date : 04-FEB-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11300 01-JAN-2001
    11300 01-FEB-2001
    11300 01-MAR-2001
    The data in the 2nd condition is perfectly valid but the application can't allow a student to submit fees for a month which he has already submitted. Now only a stored procedure can make sure after checking that the same student doesn't pay fees for duplicate months. Another reason for my emphasis on stored procedure is that what if a user tries to insert data thro an SQL* Plus session instead of the Form.
    PROBLEM: Now the problem I am having is I don't know how the procedure will take input for multiple records from the FEES_DETAIL block in the Form.
    Please assist in this regard. Thanks.

  • Inserting date in a form

    Can anybody help me, I would like to insert the date automatically in my form but in the following format "Friday 12 July 2008". However when I go to patterns and change the pattern to this format it does not change it in the PDF Preview screen. The date stays as "12 09 08. Am I missing something. Appealing to all Lifecycle Designer ES guru's.
    Regards
    Gerard

    I believe it is using the system date format by default. Which command are you using to get the current date?

  • Why does my pdf gets bigger in size once i insert data in fields(forms) ?

    Hello world,
    I'm stuck with a very frustrating problem. I have made a presentation in Aftereffects as a pdf and added some editable fields (forms) in Adobe Acrobat Pro. Once i start entering data in the fields and saving the pdf in Adobe Acrobat, the size of the file grows with 1,2 megabytes after each save. The file gets bigger even if a delete the inserted data and saving again. Did anybody encountered this problem? Where do I get it wrong? Do i need to save the pdf from indesign in some special way?  The original file is 3.5 MB containing pictures and text and from there it gets bigger with every save.
    Help on this one would be greatly apreciated.
    May you all have a great year.
    Vlad

    You should perform a Save As, not just a Save. When you do a Save As, it removes any unnecessary stuff in the file.

  • Help: How to merge excel data onto PDF form

    What steps do i need to take in order to merge excel data into my form. I'm currently looking into pulling the following fields from excell and merge them into my form:
    Employee name
    Employee ID#
    Position Title
    Supervisor
    I been browsing around LiveCycle Designer and haven't stumble upon this feature yet.
    Thank you for your time and really looking for some help out there.
    Edit:   I want to create 600 records containing the information above out of my one form. That way i don't have to sit here and do i form for each employee one at the time.

    Good afternoon Mr. Niall,
    Well i already created the XML file so that is ready to go, just been trying to figure out how execute a merge and create 600 records one for each employee.
    I was looking into exporting the PDF file into word and that way i could execute this merge much more easily but i don't think i have the capabilities to do so.

  • Insert data from one form to another table

    I have a form which of course insert data into table1, i created a process within this form and include a sql statement to achieve this for me. My thoughts are this will take whatever is the value from the form and insert it into table2.
    INSERT INTO ML_LIST (ML_TITLE,ML_LASTNAME)
    VALUES
    (P20_SSR_TITLE, P20_SSR_LASTNAME);
    My error is column not allowed here
    Any suggestions

    I used the following
    Begin
    INSERT INTO ML_LIST (ML_TITLE,ML_LASTNAME)
    VALUES
    (:P20_SSR_TITLE,:P20_SSR_LASTNAME);
    End;

  • URGENT: Need to send data from my Form to an excel speadsheeet and save it?

    I am trying to capture some data in my form and then export it to Ms Excel and save it as an ecel file.
    Somebody Pls help me .....

    I am trying to capture some data in my form and then export it to Ms Excel and save it as an ecel file.
    Somebody Pls help me .....
    More Info: Using Forms 6i, Data from Oracle 8i

  • Help needed in inserting data using a query

    I need to have some data as a result of the following query:
    select sched_num,load_id,ord_id,split_id from ord_load_seq
    where (ord_id,split_id,sched_num) in (select ord_id,split_id,sched_num from ord_load_seq where seq_num = '2'
    group by ord_id,split_id,sched_num having count(1) >1)
    order by ord_id,split_id,sched_num;
    But currently it retunrns no rows. The problem is in the having count(1)> 1 clause.
    When i make =1, it returns rows. But no rows on > 1. I even tried inserting some rows to get the result >1
    But still the query on a whole returns no rows.Please help.

    ohhh... lets start our lesson children:
    here is code to consider:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
    SQL>
    SQL> --Q1
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3 from tbl
    12  order by fld1, fld2, fld3
    13  /
          FLD1       FLD2       FLD3
             1          1          1
             1          1          2
             1          1          3
             1          2          3
             1          3          3
    SQL> --Q2
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3, count(1) from tbl
    12  group by fld1,fld2,fld3
    13  order by fld1, fld2, fld3
    14  /
          FLD1       FLD2       FLD3   COUNT(1)
             1          1          1          1
             1          1          2          1
             1          1          3          1
             1          2          3          1
             1          3          3          1
    SQL> --Q3
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 3 fld3 from dual
      7  union all
      8  select 1 fld1, 2 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 3 fld2, 3 fld3 from dual)
    11  select  fld1, fld2, fld3 from tbl
    12  group by fld1,fld2,fld3
    13  having count(1) > 1
    14  order by fld1, fld2, fld3
    15  /
          FLD1       FLD2       FLD3
    SQL> --Q4
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3 from tbl
    14  order by fld1, fld2, fld3
    15  /
          FLD1       FLD2       FLD3
             1          1          1
             1          1          2
             1          1          2
             1          1          3
             1          2          3
             1          3          3
    6 rows selected
    SQL> --Q5
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual -- inserted duplicate row
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3, count(1)   from tbl
    14  group by fld1,fld2,fld3
    15  order by fld1, fld2, fld3
    16  /
          FLD1       FLD2       FLD3   COUNT(1)
             1          1          1          1
             1          1          2          2
             1          1          3          1
             1          2          3          1
             1          3          3          1
    SQL> --Q6
    SQL> with tbl as
      2  (select 1 fld1, 1 fld2, 1 fld3 from dual
      3  union all
      4  select 1 fld1, 1 fld2, 2 fld3 from dual
      5  union all
      6  select 1 fld1, 1 fld2, 2 fld3 from dual -- inserted duplicate row
      7  union all
      8  select 1 fld1, 1 fld2, 3 fld3 from dual
      9  union all
    10  select 1 fld1, 2 fld2, 3 fld3 from dual
    11  union all
    12  select 1 fld1, 3 fld2, 3 fld3 from dual)
    13  select  fld1, fld2, fld3 from tbl
    14  group by fld1,fld2,fld3
    15  having count(1) > 1
    16  order by fld1, fld2, fld3
    17  /
          FLD1       FLD2       FLD3
             1          1          2
    SQL> Q1. As you may see we have an bunch of data where each row is unique combination of the columns value.
    Q2. lets try to group it by fld1 and fld2 and fld3 columns. We don't expect any miracle and got the same data as Q1. Why? Because each row is unique combination(group) in scope of fld1, fld2, fld3 - count(1) exactly shows us that.
    Q3. Q2 is explanation why we got no rows filter (having count(1) > 1)because the result of the clause is always false.
    Q4. Lets put some duplication.
    Q5. Now we got some new result. Count shows us group with more then one rows.
    Q6. Shows us exact group which we've found in Q5.

  • Urgent help needed in inserting data into a custom table in oracle WorkFlow

    Hi
    I am trying to get data from the WF and insert into a custom table..
    I read that workflow procedures WONT allow commits...
    Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
    Have anyone did this..
    Please give me some idea ...It is urgent
    I am getting data using getitemattribute..and try to insert it into a custom table
    thanks
    kp

    Pl do not post duplicate threads - insert dont work in Workflow
    Srini

  • Importing video help! Need Time and date to show up on screen...

    SOMEBODY HAS TO HAVE AN ANSWER!
    Okay, little background... I just got a new Mac book pro lab top. First time apple user. Difficult to learn, but learned fast. I am working with IMovie HD program, got the hang of it. I have a Cannon ZR50 camcorder, mini DVR tape. Camera has DV,S, USB, AV etc.. port outs. Hooked it up to lab top to import video to lab top to edit footage add sound etc... to later burn to DVD via IDVD program
    BTW: I used a DV to Firewire cable to load up footage.
    PROBLEM I AM HAVING. is when I'm importing my video to the computer, time and date stamp from my camcorder's screen does not show up on Mac screen. It gets lost when importing. How I view it on my camcorder (SHOWING TIME/DATE INFO ON FOOTAGE TAKEN) is how I would like to view it after importing it to lab top to later edit ad sound tracks etc... If I hook up my camcorder to a VHS or TV, to record on tape of footage taken, Time/Date stamp of footage shows up and records on tape with no problem.
    I spoke with a lot of people on this issue. Everyone refers me to someone else. I can't get an answer for something in my eyes is so simple. They all said " Why would you want the time and date stamp to show up on your footage anyway" Well I would like it to be that way. Topic got down to three things that might solve problem. 1. Need better video/editing software. 2. Need Digital Analog capture device. 3. Need new camcorder. I've been working on this problem for a day or so. It's getting rough for help. Any information on this problem would be great. If you need any more info on my issue please do not hesitate to Pm me. Thanks

    Hi SIZ4SK:
    Welcome to discussions!
    You can't do that with iMovie but you can with a bit of help from a third party...
    What you really need is this free plugin from TriX Software:
    DVFileDateCM
    http://www.trixsoftware.com/DVFileDateCM.html
    Let me know if this helps or not.
    Sue

  • Help! Need to save data from field point in excel sheet!!!

    Hey colleagues,
    I need help. I am writing on my diploma thesis.Main topic is to develop a visualization of a process of a process plant which is used for an internship in uni. My meain problem is that I need a vi where I can save my fieldpoint data only in special cycles. At the moment I use a vi which can only save every second in form of a while loop and a metronom. I am searching for a vi where I can choose the time between every saving step in excel. In addition to that I would like to have a boolean button where i can start/stop the saving within running process.
    please help me urgently!!!
    Marco

    Hello Marco,
    the answer
    for your problem is called “Software Control Timing”.
    If a
    desired time has elapsed, you can write data’s to a file.
    The explicit
    timing is the timing for your while loop, e.g. 10ms.
    If a
    desired time has elapsed, you get a flag from a timing-function and an
    additional block of your code (e.g. a subVI) will executed.
    The set
    time for the timing function is settable dynamically, while your program is
    running.
    Find the VI
    in the attachment, which will provide this functionality for you.
    I hope this
    VI will bring you further ahead…..
    Have nice
    day…
    Ulrich
    AE-NIC  
    Attachments:
    SoftControlTiming.vi ‏41 KB

Maybe you are looking for