No form data is not in the database

Hi-

I created a simple web form that allows the user to add new records to the database, however, only one of the text fields appear in the database. I'm not sure what I did wrong. Can anyone help? Thank you. (See code below)

----

< body >

Add a record < h3 > < / h3 >

< do action = "add_record.php" method = "post" name = "Add record" > "
< input name = "Title" type = value "text" = "Title" size = "100" / > < input name = "Author" type = value "text" = "Author" size = "125" / > < input name = "Year" type = "text" value = "Year" size = "50" / > < input name = "Editor" type = "text" = "Publisher" value / > < input name = "ebook" type = "text" value = "Ebook" / > < input name = "Ranking of Amazon" type = "text" = "Rank" value / >
< p > < input name = "Submit" type = "submit" / > < / p >
< / make >

< / body >
< / html >

Your code looks OK, although there is a dollar sign disappeared off the coast of amazon_rank at the end:

$insert = mysql_query ("INSERT INTO mydatabase.idxbooks (book_title, author, year, Publisher, ebook, amazon_rank) VALUES ('$book_title', '$author', '$year', '$publisher', '$ebook', 'amazon_rank') '");

This should be:

$insert=mysql_query("INSERT INTO mydatabase.idxbooks
(book_title, author, year, publisher, ebook, amazon_rank)
VALUES ('$book_title', '$author', '$year', '$publisher',
        '$ebook', '$amazon_rank')");

Tags: Dreamweaver

Similar Questions

  • When I complete and sign a form and then print it out, the form data does not print.

    When I complete and sign a form and then print it out, the form data does not print. The form fields are empty with the exception of any signature.

    Thank you. Depending on your answer, I have compiled a procedure:

    Fill & sign a form in Adobe CD and print the form fields:

    (1) open the document.

    (2) click on tools - prepare the form. All fields are displayed in a vertical list in the bottom right of the screen.

    3) click on the first field in the list, scroll to the bottom of the list and shift-click to select all.

    4) click on the first field in the document, make a right click, select Properties.

    (5) on the general tab, uncheck the box locked in the lower left corner. Under field properties common form, select Visible and uncheck the read-only box, close.

    (6) print out and save the file.

    Note: even if you select all the fields in the document in step 3, this procedure may work for the fields on page 1. In this case, repeat steps 3 through 5 for each subsequent page.

  • BlackBerry Smartphones could not initialize the databases during synchronization of Blackberry Desktop Software

    The said software "could not initialize the databases" and does not sync my BB.  This has happened for a week.  I reinstalled the Desktop software, reset to factory settings, restore a backup file, did a hard reboot by removing the battery, tried to synchronize an element (calendar, contacts, tasks, notes), at one time, updated BBM all to nothing does not... Help.

    Looking at the synchronization log, he said this...

    14:49:29.765 CRSyncUtil::BackupCacheDBs: error copy of the file 'C:\Documents and admin Local Settings Application Data is in Motion\BlackBerry Desktop\XCPCSync.OEM\SyncSDK.209.601\Data\4_65538_PR.tdc' to 'C:\Documents and admin Local Settings Application Data is in Motion\BlackBerry Desktop\XCPCSync.OEM\SyncSDK.209.601\Data\4_65538_PR.tdc.sav': 0 x 00000070 (there is not enough space on the disk.)

    I looked at this file and at the time I started to get into trouble.  It was enormous... I have moved out of the directory and tried to re-sync.  It worked!

  • Date does not match the format DD-MON-RR

    I've created a form, and I have an element bound to a date type field.
    This element is a date picker, and when I choose a date on the calendar, the date appears correctly, in article 28-Dic-12

    The problem is, trying to create the record, I got an error:
    Date does not match the format DD-MON-RR

    But I do not understand how to solve this problem. The date is correct as far as I KNOW.

    Kind regards.

    change Application language derived from-> Application primary language

  • Map deployed but do not see the database package

    Hello

    I have been a card having a flat file as a source and a target table.
    But I do not see the database package. Which object this kind of card would be in the database?

    Thank you
    Sozy

    Hello

    When you move the data from the flat file to oracle table, OWB will create the type mapping SQL LOADER in which it will generate the .ctl file and submit the same to Oracle SQLLDR, which in turn make the load.
    It doesn't generate PL/SQL package.

    Thank you
    Fati

  • Insertion of multiple values in the report (not in the database)

    Hello!

    I have a procedure that shows example of 50 people and for each text element three different person I access values and submit to the database. There is a check box for each line. I have a selection list of Pentecost that you choose the column and a text element where you enter the value to insert. What I want to do is insert this value just in the lines that have a selected check box. I would like to insert this value just in the report (not in the database) when I click on a button.

    What do I have to use javascript? I really have no idea how to do that.

    Thanks for any help!

    This will give you an idea on how to handle the selected lines:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:95

    Other examples show how to use tabular forms.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • How can we check that the data already exist in the database

    Hi friends

    I'm trying to create a procedure for adding clients in the database with the customer id as input parameter... but if the customer details database already exists that I would update this detail and is not in the database I want to add this detail in the database... How could I do that...

    any help would be appreciated

    Thank you
    Rommy

    Hello

    If your condition is to add to a table, and if the record exists in the other table, the merge statement does not work

    Example (Please check the column name and the parameter names). I do not commit or rollback because I do not know if you control the transaction within this procedure or outside it.

    CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID        IN VARCHAR2,
                                         I_CUST_F_NAME    IN VARCHAR2,
                                         I_CUST_L_NAME    IN VARCHAR2,
                                         I_CUST_ADD       IN VARCHAR2,
                                         I_CUST_CITY      IN VARCHAR2,
                                         I_CUST_STATE     IN VARCHAR2,
                                         I_CUST_ZIP       IN VARCHAR2,
                                         I_CUST_DOB       IN DATE,
                                         I_CUST_          IN VARCHAR2,
                                         I_CUST_ACCT_TYPE IN VARCHAR2,
                                         I_START_BAL      IN NUMBER) IS
    BEGIN
       INSERT INTO CUSTOMERS C
          (CUST_ID,
           CUST_F_NAME,
           CUST_L_NAME,
           CUST_ADD,
           CUST_CITY,
           CUST_STATE,
           CUST_ZIP,
           CUST_DOB,
           CUST_)
       VALUES
          (I_CUST_ID,
           I_CUST_F_NAME,
           I_CUST_L_NAME,
           I_CUST_ADD,
           I_CUST_CITY,
           I_CUST_STATE,
           I_CUST_ZIP,
           I_CUST_DOB,
           I_CUST_);
    
    EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
          INSERT INTO CUSTOMER_ACCT
             (CUST_ID,
              CUST_ACCT_NO,
              cust_acct_type)
          VALUES
             (I_CUST_ID,
              CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
              I_CUST_ACCT_TYPE);
    
    END add_cust;
    

    Kind regards

  • Tecra A10 - 11L are only & not on the database serial number

    I bought a new Toshiba labtop (Tecra A10 - 11L).

    This model is not listed on toshiba - Europe.com and serial number not on the database.

    for:
    drivers search 1
    2 register the product
    3 - upgrade to windows7

    What does this meen? What should I do?

    Come one man. Open your mind

    You will not find the Tecra A10 - 11L on the driver page, but you will find the * series Tecra A10 PTSB0E *!

    Take a look at the bottom of the unit, you will find the model/serial number

    On the European driver Toshiba page you will find all the details and the drivers for the Tecra A10 PTSB0E ;)
    http://EU.computers.Toshiba-Europe.com

    Easy isn't it?

  • Signature error code: customer ID is not in the database of the authorization

    Everything worked well on JDE 4.2. Then I installed JDE 4.5 and compiled my project to use it. But when I ask signature now it says "Code signing request failed because xxxxxxxxxx customer ID is not in the database for authorization.

    Please tell what is wrong.

    Thanks in advance

    Hello, there were several changes in the BlackBerry servers...

    See the following URL: http://supportforums.blackberry.com/t5/Java-Development/Signing-Client-does-not-exist-in-authorizati...

    Greetings

  • At what stage of the treatment we use a rule to update to apply logic to the way the data are updated in the database?

    Hello

    At what stage of treatment do you use a rule to update to apply logic to the way the data are updated in the database?

    Rahul

    Hello Rahul,

    Update the existing record or a data object

    Thank you

    edynamic expert Eloqua

  • the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

    Hello

    You have used a form of e-mail field to create 'Appetite' section. This is the reason for which form registers an error as its not able to recognize an e-mail here entry.

    email form field is a required field for form of Muse. Please rename back to e-mail and also to create another field in form in the widget forum (go to the Option to form and enter a single-line text field) and it should work properly.

    Concerning

    Vivek

  • application could not load the database

    I have a RoboHelp 9 project that I left open on my computer at night and microsoft updates ran causing my computer to restart.  When I try to open my project in RoboHelp 9, I get the following error:

    Open a project has been cancelled or the application could not load the database for 'C:\CODE\HELP\HELP. CPD»

    How can I fix the CPD file without restarting?

    Hello

    Just delete the CPD and re - open the project. When RoboHelp sees is missing, it will cook in the oven until a new use and then all should be well.

    See you soon... Rick

  • Scipt OpenScript/Bank of data/hand scipt:Second used can not find the database file

    Hi all

    I want to palyback a main script containing three "scripts", two of them are the same script. Separately, they all can read successfully.
    For example, in the script 'Hand', there are 'A' 'B' 'A' script ssuccessively. and 'A' 'B' have their own databases respectively under "a data bank / ' and ' B/database /. Each database has two records in the .csv file.
    Now I'm reading 'Hand', the script of the child 'A' can run successfully then child script "B" run correctly too, but the second, run the script "A" says more no record and the main script to stop there.

    So, how can I do the 'Hand' performance full script without being stopped by the second script used 'A'?
    Thanks a lot for your help ^ _ ^!

    Kind regards
    Angyoung

    Hello

    Mention the database settings in initialize(), IE.

    public void initialize() throws Exception {
    ........
    getDatabank("DBAliasNAme").changeSettings("startindex=1:whenout=STOP_USER");
    .......
    }
    

    Kind regards
    Dembélé M

  • How to create a local directory on the client and not on the database server?

    Hello

    First of all, thank you for taking the time to solve the problem.

    I apologize if there are errors in the format used for the display of this issue.

    I have a procedure that generates data in the csv file and is loaded into a directory.

    I have a requirement to plan this procedure should be performed every week.

    I did the above two steps successfully.

    but the problem am facing is that files are downloaded in the directory location for the oracle server. but I need the files to load to my own record of operating systems.

    IE my PC is not the database server, but I thought to create a directory on the operating system of my own PC C:\ drive.

    It is a frequently executed procedure then uses dbms_scheduler.

    Can we create a directory on our own PC operating system file. I use Windows 7 OS?

    Please find details of version below.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Your time and your help is very appreciated.

    Thank you

    SQL and PL/SQL FAQ

  • Value recording is not in the database

    Dear all,

    I use Jdev 12.1.3 with Oracle Database 12 c.

    I created a main form and a table of detail in a .jspx page, but one of the columns in the secondary table is not saved in the database.

    I support on post and when I look in the database value is null, and there is not a single line of code for this article.

    <af:column sortProperty="#{bindings.AccJVTransDVO.hints.AccCode.name}" filterable="true"
                                               sortable="true" headerText="#{bindings.AccJVTransDVO.hints.AccCode.label}"
                                               id="c1">
                                        <af:inputListOfValues id="accCodeId"
                                                              popupTitle="Search and Select: #{bindings.AccJVTransDVO.hints.AccCode.label}"
                                                              value="#{row.bindings.AccCode.inputValue}"
                                                              model="#{row.bindings.AccCode.listOfValuesModel}"
                                                              required="#{bindings.AccJVTransDVO.hints.AccCode.mandatory}"
                                                              columns="#{bindings.AccJVTransDVO.hints.AccCode.displayWidth}"
                                                              shortDesc="#{bindings.AccJVTransDVO.hints.AccCode.tooltip}">
                                            <f:validator binding="#{row.bindings.AccCode.validator}"/>
                                            <af:convertNumber groupingUsed="false"
                                                              pattern="#{bindings.AccJVTransDVO.hints.AccCode.format}"/>
                                        </af:inputListOfValues>
                                    </af:column>
    

    No, there is only one difference between this column and others:


    The database column is set to null, a converter is included while not for the other columns

    model = ' #{bindings. " AccJVTransDVO.hints.AccCode.format}"/ >

    The converter is to convert a null value.

Maybe you are looking for

  • How can I remove firefox trovi?

    Close the computer last night, after all the windows were gone there was a box saying that the search engine recommend an another search engine for greater privacy. Options should accept or cancel or it X I clicked the X to exit. This morning, it see

  • Garmin Communicator Plugin problem

    This is not fixed: https://support.mozilla.org/en-US/questions/971855?esab=a & as = NAQ. I have reset Firefox 3 times. I uninstalled and reinstalled the Garmin Communicator plugin. It's on my list of Firefox plugins. When I go to download from my dev

  • How can I display search history - NOT the browser history?

    Everyone knows that Firefox keeps a history of websites you've visited. Also, by right-clicking the search box in FF, it allows you to 'search clear history. " Here are the items you have looked in the past - but not necessarily clicked by the result

  • Satellite Pro M70 - screen is blank

    Hey guys,. Have had my Satellite Pro M70 for more than a year now and never gave me any problems before. On about 3 times now, the screen disappeared all of a sudden completely gray and white and stays that way, unless I restart and is so very well.

  • HP 4500 Envy: Envy 4500 does not print

    I used my desire 4500 for a few months. Mid-printing it stopped printing and now it won't print. I went through all the steps of troubleshooting without result. (I turned the printer off/on power; unplugged power cord, reset printers, etc.) It will s