[php+mysql] how to insert 3 records at once and print out all 3 records?

Hi all,
I have to create a serie of pages that allow the user to:
1- Insert 3 records in a mysql db at once
2- click NEXT
3- viewverify//print the data that he has entered (all 3
records)
4- click PRINT
5- click FINISH
then, restart from 1
What is the best way to do this?
TIA for any suggestion.
tony

The best way is usually to use a stored procedure. Do you
know if the version of MySQL you are using supports sprocs?

Similar Messages

  • How to make a CD Jacket and print out Song order directly from playlist

    I was wondering if there was a way to make a CD Jacket with artwork from songs selected and also how to make a same size sheet to fit in the CD holder that has the exact song order and titles by printing out directly from your playlist.
    I am not sure I worded that right but hopefully you will know what I mean.
    Any help would be greatly appreciated.
    Thanks

    There is a pretty basic CD insert that you can print from iTunes, if I remember correctly it will print whatever artwork is attached to the first song in the playlist.
    Open iTunes, highlight the playlist in question, go to File>Print and choose the CD Jewel Caser Insert radio button. Theres also a little Theme menu.
    However you can get much more flexibility from a dedicated CD Cover program. I use Cover Star, it's inexpensive and makes good quality CD booklets, back covers and disc overlays. It will generated artwork for you or you can drag your own picture files to it. You can download a trial version from this link: http://autostylus.com/coverstar.html. It's fully functional apart from printing so you can play around with it and save the inserts until you decide if it's for you. Purchasing a license then releases the final function and anything you saved previously can be printed off.

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • How to send multiple records in file2file and file2db or all scenarios//

    I'm able to send single record for file2file and file2db,
    how to send multiple records in file2file and file2db or all scenarios//
    what should add or make changes for dis.

    1 put Occurance 1 to Unbounded in data type of IR
    2 In the test tag of message mappings in IR,select one node and use "duplicate subtree" in its context menu
    After that,you can download the test data in XML format with the button "save document source"
    for example:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ZFileDemo xmlns:ns0="http://hand-china.com/mm/po_01">
    - <Item>
      <ItemNo>1</ItemNo>
      <Matnr>2</Matnr>
      <Text>3</Text>
      </Item>
    - <Item>
      <ItemNo>4</ItemNo>
      <Matnr>5</Matnr>
      <Text>6</Text>
      </Item>
      </ns0:ZFileDemo>

  • Pass Prompt values into Legend / '-ALL-' filter filters out all records

    Hi
    I have 2 questions for the same chart so I hope it's OK to add them in one post.
    Firstly I have created a chart & added three Select List filters which work fine, the query is below, problem is that when I change back to '-ALL-' I get no data, it has filtered out all records as no data matches the value of '-ALL-' does anyone know the code to get around this?
    My chart query;
    select null link, P_MONTH AS MONTH, SUM(CALLS) AS data
    from DATA.MAIN_DATA
    WHERE WAREHOUSE = :P1_WAREHOUSE
    AND ANS_UNANS = :P1_ANS_UNANS
    AND PRODUCT = :P1_PRODUCT
    GROUP BY P_MONTH
    As I will have several queries like the one above for different options on the same chart, I would like the Legend to show what the user has chosen each time the options are changed ie;
    Something like the bolded text in the query to display the chosen values in the legend;
    select null link, P_MONTH AS MONTH, SUM(CALLS) AS 'P1_WAREHOUSE' || 'P1_ANS_UNANS' || 'P1_PRODUCT'
    from DATA.MAIN_DATA
    WHERE WAREHOUSE = :P1_WAREHOUSE
    AND ANS_UNANS = :P1_ANS_UNANS
    AND PRODUCT = :P1_PRODUCT
    GROUP BY P_MONTH
    Any ideas/suggests?

    Thanks Andy
    I'm having some problems with applying this so it may be best if I show you how I've applied this code.
    Here's an example of my data on a made up 'EMP' table;
    ENAME     SAL     DEPTNO     DEPARTMENT
    SMITH1     1871     345     DEPT1
    SMITH2     1953     345     DEPT2
    SMITH3     2239     345     DEPT3
    SMITH4     492     345     DEPT4
    SMITH5     2431     345     DEPT5
    SMITH6     2331     345     DEPT6
    SMITH7     1003     369     DEPT7
    SMITH8     1688     370     DEPT8
    SMITH9     2284     371     DEPT9
    So I'm only using one table - 'EMP'
    I've created 2 LOVs, 'DEPTNO' & 'DNAME'.
    'DEPTNO' LOV has the values for the 'DEPTNO' field in the table.
    'DNAME' LOV has the values for the 'DEPARTMENT' field in the table.
    I then created a chart with the below SQL query as its source;
    SELECT NULL LINK,ENAME LABEL,SAL VALUE
    FROM EMP
    WHERE (DEPTNO = :P1_DEPTNO OR :P1_DEPTNO = 0)
    ORDER BY ENAME
    The 'Chart Title' field under the 'Chart Attributes' tab has the below added;
    Department - &P1_DNAME.
    The COMPUTATION is as below;
    SLECT NVL(DEPARTMENT, '-ALL-')
    FROM EMP
    WHERE DEPTNO = :P1_DEPTNO
    Could you advise where I may be going wrong as I have the following errors;
    1. The chart is working OK with the added '(DEPTNO = :P1_DEPTNO OR :P1_DEPTNO = 0)' clause - but I still get no results for '-ALL-'
    2. I can't get the chart to display the current value in the legend - where exactly should I put this line - 'Department - &P1_DNAME.'
    3. The Computation is stopping any data from showing in the chart

  • My wife and I have 2 new iPhones and also have a mac book pro and an iMac. How can we share apps, music and contacts between all these?

    My wife and I have 2 new iPhones and also have a mac book pro and an iMac. How can we share apps, music and contacts between all these?

    Use the same Apple ID and password for purchasing in all these devices.

  • In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    May you open your eyes before creating a new thread ?
    Your question was already asked and answered today.
    https://discussions.apple.com/thread/3177074?tstart=0
    Yvan KOENIG (VALLAURIS, France) jeudi 14 juillet 2011 14:40:40
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the

    How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the e-mail.  What have I done differently?

    Thanks again for the detailed instructions Srini!
    And I really hate to be a pest . . . but . . .
    Using your example and not modifying it, I get the e-mail form filled out correctly and the pdf attached, however, I'm not prompted to sign it.
    Any more clues?

  • How can I print out all notes?

    I have over 200 notes and I would like to print out a copy to keep as a reference. Is it possible to somehow print out all of the notes at once without having to open up each one individually and print them out.

    It's not a file, so you can't "open" one file. Every message (and note) is a single file on the computer.
    This Applescript will grab all the notes in the selected mailbox (i.e. the selected Notes item in Mail) and put them in a textEdit document.
    Note that Mail doesn't differentiate between a note and an email message, so if you run this while a normal email mailbox is selected, it will gather all of your email messages.
    tell application "Mail"
    set theMailboxes to the selected mailboxes of message viewer 0
    repeat with aMailbox in theMailboxes
    set theNotes to the messages of aMailbox
    set theText to ""
    repeat with aNote in theNotes
    set theText to theText & content of aNote & return
    end repeat
    end repeat
    end tell
    tell application "TextEdit"
    set myDocument to make new document at end of documents with properties {text:theText}
    end tell
    Copy and paste this into a new AppleScript Editor Document, select the Notes mailboxes you want to print the notes from, and click the Run button (Green button with arrow).
    This may take a while.

  • How can I print out all notes or export the entire file?

    I have around 300 notes that include a variety of information. I would like to print out a hard copy. I don't want to open and print out each one individually. Is there a way to print out all of them at once. Also, is there a way export the file so I can open it in another application like Excel or Word?

    It's not a file, so you can't "open" one file. Every message (and note) is a single file on the computer.
    This Applescript will grab all the notes in the selected mailbox (i.e. the selected Notes item in Mail) and put them in a textEdit document.
    Note that Mail doesn't differentiate between a note and an email message, so if you run this while a normal email mailbox is selected, it will gather all of your email messages.
    tell application "Mail"
    set theMailboxes to the selected mailboxes of message viewer 0
    repeat with aMailbox in theMailboxes
    set theNotes to the messages of aMailbox
    set theText to ""
    repeat with aNote in theNotes
    set theText to theText & content of aNote & return
    end repeat
    end repeat
    end tell
    tell application "TextEdit"
    set myDocument to make new document at end of documents with properties {text:theText}
    end tell
    Copy and paste this into a new AppleScript Editor Document, select the Notes mailboxes you want to print the notes from, and click the Run button (Green button with arrow).
    This may take a while.

  • How to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    how to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    No way with just the free Reader. It may be done with Adobe Acrobat.

  • I'm trying to print from a full size 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer?

    I'm trying to print from a full-size, 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer (Brother MFC-9340CDW)?

    You might be better off contacting an AutoCAD support group.

  • How do I get my MX420 to print out a fax that is in its memory?

    How do I get my MX420 to print out a fax that is in its memory?

    Hello notatechie,
    Please try the following procedure to print the documents in memory:
    1. Make sure that the machine is turned on.
    2. Load paper.
    3. Press the FAX button.
    The Fax standby screen is displayed.
    4. Press the left Function button.
    The Fax menu screen is displayed.
    5. Select  Memory reference, then press the OK button.
    6. Use the   button to select Print all received documents, then press the OK button.
    The confirmation screen is displayed.
    7. Use the   button to select Yes, then press the OK button.
    All the documents in machine's memory will be printed.
    Each time a document is printed, the screen to confirm whether to delete the printed document in machine's memory is displayed.
    If you select Yes using the   button and press the OK button, the printed document in machine's memory is deleted.
    We hope this helps!
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.

    Hi Experts,
    Kindly let me know
    how to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Also, in the database level too ,Do we need to write any trigger for this?
    Thanks in advance.

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • In Numbers '09, version 2.3 (554), how to I get spreadsheet gridlines to print out? I have a Macbook Pro and use OSX 10.9.4 Mavericks.

    In Numbers '09, version 2.3 (554), how to I get spreadsheet gridlines to print out? I have a Macbook Pro and use OSX 10.9.4 Mavericks.

    HP,
    In Numbers '09, the only lines that print are Cell Borders. Apply borders and test by Printing to PDF.
    Jerry

Maybe you are looking for

  • Mail displays text as .htm attachments

    Machine is set to Rich text. This only occurs in files sent from our PCs (specifically a signature with a jpeg logo in it). The jpeg shows up fine with a text.htm attachment next to it. On my 10.5.5 machine, the signatures from PCs come across fine.

  • Copied Iphoto 9 library to new Imac... question on faces...

    Hi, I have an old macbook with Iphoto 9 loaded.  Faces never worked right on the Macbook and after a while, I just gave up. I bought a new Imac yesterday and spent a while trying to figure out how to get my Iphoto library over to the new machine. Fir

  • Aperture stuck "moving MobileMe albums"

    Aperture 3.3.1 running on a 27 inch iMac with OS 10.7.4 I did have a subscription to MobileMe but as we all know, that service isn't offered any more. Now when I open Aperture, I get an automatic popup telling me that MobileMe isn't available any mor

  • Why when i set up folders for my photos do they also appear in the photo library can I only have them appear in the folders???

    Why when i set up folders for my photos do they also appear in the photo library can I only have them appear in the folders and not duplicated in the photo library???

  • Javascript Syntax Error

    Hi Gurus, I am try in to buid a function function runReport(){ I have declared all these variables above and I am trying to build this URL. I want if user changes destype drop down to 'cache' that destype should add. else this line should not add. I