How can I get the data in the foreign key?  PHP/mysql

I managed to create registration, log-in and results pages appear for accounts of client with PHP/Mysql/Dreamweaver 8. I have another page for more information to be contained in a child table, I used the Insert Wizard to create. I can't make it work. I get either a foreign key cannot be null error or a foreign key constraint.

If I include the foreign key in the form on the page, I can manually enter the appropriate identification number, and it works. How to automatically enter the id into the foreign key column?

I got the authentication of users using e-mail, password and user type.

Thanks for your help

When someone connects, Dreamweaver creates a session variable called $_SESSION ['MM_Username"]. Use this session variable to create a recordset object to get the ID of the user, who can then be entered in the child table's foreign key field.

Dreamweaver automatically updates the code for recordsets immediately above the DOCTYPE declaration, then you will need to move above the code for the server behavior insert record. So it must be in the following order:

  1. Recordset to get the user ID
  2. Insert the record to the child table

Tags: Dreamweaver

Similar Questions

  • How can I get the product key online for the vista sp2 update which is not genuine

    How can I get the product key for activation of vista sp2 update which is not genuine online?

    Khaled, you know something that is not Microsoft. Well, I hope that you are not a Microsoft Support Engineer.

    Copied from the Microsoft Web site...

    The purchase of Windows Vista
    Microsoft sells more than Windows Vista, although we will continue to support.
    Visit your local retailer or online to buy a PC with Windows Vista
    .

  • How can I get the product key when it was preinstalled on my LENOVO G500-59380860 Matthew?

    I BOUGHT A LENOVO LAPTOP WITH 8 WINDOWS PRE INSTALLED. HE DIDN'T THERE HAS NO STICKER PRODUCT KEY ON THE LAPTOP, SO I DID NOT HAVE ACCESS TO THE PRODUCT KEY. EVERYTIME I OPEN THE SYSTEM THERE IS A MESSAGE "ACTIVATE YOUR WINDOW... HOW CAN I GET THE PRODUCT KEY AND ACTIVATE THE WINDOWS IN MY LAPTOP. ??

    Hi Priyanka,

    We apologize for the inconvenience caused to you.

    Pirated copies are developed illegally. Genuine Windows is published by Microsoft, properly licensed and supported by Microsoft or a trusted partner.

    For more information on the piracy and Genuine Windows, see the links.

    http://Windows.Microsoft.com/en-us/Windows/help/genuine/FAQ

    http://Windows.Microsoft.com/en-us/Windows/genuine

    http://www.Microsoft.com/en-us/piracy/default.aspx

    I wish that you contact the Lenovo Support to improve assistance in this regard.

    http://support.lenovo.com/en_IN/feedback/contactsupport.page?

    Hope this information helps.

  • How can I get the license key for the trial app, now that I joined creative cloud?

    How can I get the license key for the trial app, now that I joined creative cloud?

    After trying once again, the registration process has worked and activated my copy of test for me.

  • How can I get the product key for Windows XP? I have is no longer mine.

    I GOT THE CD OF ORIGIN FOR WINDOWS XP HOME EDITION WITH PRODUCT KEY, NOW I DON'T HAVE THE PRODUCT KEY OF FORMATTING IS MADE FOR MY COMPUTER AND IT ASKING PRODUCT KEY

    DEAR SIR.

    I HAD BOUGHT WINDOWS XP HOME OF DIGITAL LIVING ROOM IN BANGALORE (INDIA) 2008-03-18 @10.47 WITH S / N:80043 - 429-709-731 AND I GOT THE PRODUCT ALSO KEY (NOW IT HAS BEEN DAMAGED AND HAS NOT BEEN ABLE READ). ON 3 FEBRUARY, I HAD TO FORMAT THE SYSTEM. AND AGAIN WHEN I WENT TO INSTALL WINDOWS XP IT ASKS MY PRODUCT KEY (WHICH HAS BEEN DAMAGED). I HAD MY ORIGINAL CD. PLEASE HELP ME.

    Hello
    You can check this link:
    How to identify, locate, and replace a product key
    http://support.Microsoft.com/kb/811224

  • How can I get the product key when missing / or fainted at a group of letters and numbers on the Microsoft product labels?

    I am able to see some numbers and letters of a product on the Microsoft label key I bought and you must activate the product. Does anyone know how to find the product key otherwise?

    Your response is much appreciated!

    Hello

    If vista is preinstalled (Dell, HP, etc.), this should help you:

    In these Forums, it is often recommended to use a magnifying glass and a flashlight to see if you can read the numbers of the product key on the label.

    Also that, read also:

    You can contact your computer manufacturer and ask them to send you a set of recovery disks and to reinstall the operating system.

    They should do this for a small fee.

    And if you have never received a recovery disk when you bought your computer, there should be a recovery Partition on the hard drive to reinstall Vista on how you purchased your computer.

    The recovery process can be started by pressing a particular combination of the key or keys at startup. (Power on / start)

    Maybe it's F10, F11, Alt + F10, etc., depending on the manufacturer.

    Ask them to the proper key sequence.

    The methods above resettlement generally do not require allows you to provide a product key during Installation, the recovery process uses the Installation product key factory to activate automatically during the resettlement process.

    See you soon.

  • I changed my computer from XP to vista. How can I get the activation key when Laura by windows vista?

    activation key for windows vista

    How you installed Vista as an upgrade on XP or to perform a new installation? Did you use the installation of a media installation upgrading or complete dvd or did you by TechNet or MSDN subscription paying there?

    With or without a dvd, you must enter the product key that was included with the media or have bought and downloaded via the store Ms. The product key is usually on the plastic case, the dvd of Vista arrives or accompanies electronic download and is that you enter during the installation/update level or when you use the control panel > system > change the product key to see active Windows.

    You'll need a product key valid for the edition in question that you are now going to run.

  • How can I get the free key for window 7 ultimate to activate my window?

    I bought a disc of window 7 ultimate in Namibia of this key producing (productkey deleted), but I left the drive in Namibia and now I format my PC and install a copy of the same holiday window 7 ID 00426-292-0000007-85834 which left only with 22days, and I don't have a product key, please send me the free one ,

    Hello

    I wish to inform you that MS does not provide product keys to activate.

    I ask you to buy a new copy of Windows and activate more.

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-7-product-key

  • Email deleted with the product key. How can I get the product key?

    Original title: windows product key 8

    I bought windows 8 on the internet and got my email with the product key, but I deleted the email with the product inside key.  I do not have a cd or something like that, is it possible for me to find my key product somewhere?  I had installed windows 8 on my computer but had to uninstall for professional reasons

    Thanks for the reply but my fault I forgot to include a few key information in the original question.  I had installed windows 8 on my computer but had to uninstall it for professional reasons.

    Option 1:

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    You can download it from there and use your product key to upgrade:

    http://Windows.Microsoft.com/en-GB/Windows-8/upgrade-product-key-only

    Option 2:

    Here are four utilities, which can display your product keys if they are still there:
    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.)

    Also: http://www.magicaljellybean.com/keyfinder.shtml
    and: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and RockXP: http://www.majorgeeks.com/download4138.html which has additional features

  • How can we get the Windows key?

    Dear all,

    I bought a Windows 7 Pro key and activated my current computer...

    Can I use this key to activate with the other machine? If not, how do disable us this key and turn on another machine?

    Thank you

    No, the key that can be used with 32-bit or 64-bit Windows 7 is exclusively for use with the disc 1. You cannot use install both. 1 license, 1 installation, so choose wisely. If you want to install Windows 7 32 or 64 bit on another partition or another computer, you must purchase an additional license.

    . INSTALLATION AND USE RIGHTS.

    a. one copy per computer. You can install one copy of the software on a single computer. This computer is "licensed computer.

    b. a computer license. You can use the software on up to two processors of the computer under license at some point. Except as provided in these license terms, you cannot use the software on any other computer.

    c. number of users. Except as provided in these license terms, only one user may use the software at a time.

    d. other Versions. The software may include several versions, such as 32-bit and 64-bit. You may install and use only one version at a time.

  • How can I get the product key to activate my Windows 7 ultimate

    which website can give me product keys authentic?

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

    See also:

    Microsoft Store:

    http://www.microsoftstore.com/store/msstore/list/parentCategoryID.44066700/CategoryID.60521000

  • How can I get the recovery key?

    Double locking wire.

    Please continue here: [950889/questions/950889]

    rekovery large accounts in sync

    Thank you

  • I had lost the cd key for my win7 home preium even the sticker is lost. How can I get the key again

    I HAVE A LAPTOP SONY THAT I BOUGHT IN AUGUST 2012.

    THE CD KEY STICKER IS TORN NOTEBOOK, & HDD THAT WENT WRONG. I REPLACED THE HARD DRIVE, BUT CAN NOT ABLE TO CONFIGURE WIN 7 AGAIN.

    FOR THIS I NEED MY CD WIN KEY. HOW CAN I GET THE SAME KEY?

    I HAVE A LAPTOP SONY THAT I BOUGHT IN AUGUST 2012.

    THE CD KEY STICKER IS TORN NOTEBOOK, & HDD THAT WENT WRONG. I REPLACED THE HARD DRIVE, BUT CAN NOT ABLE TO CONFIGURE WIN 7 AGAIN.

    FOR THIS I NEED MY CD WIN KEY. HOW CAN I GET THE SAME KEY?

    Contact Sony and get restore/recovery of them media as you will probably be impossible to recover the product key and the media they send should not he (and given the novelty of the laptop, I don't think that this should be a problem.)
     
    For later use, it's a product key - not a "CD Key" (Windows 7 is not yet on a CD.  (* smile *)

  • How can I get the F1, F2... key to work in Windows XP?

    Hello

    How can I get the function keys (F1, F2, F3...) to work in Windows XP?  I had this working properly before, but I had to reinstall everything, and now it does not work.

    I tried to uncheck the "shortcuts Mac OS', but this causes the mouse to stop working.

    Sincerely, Neil

    Edit: re-read the previous post, I missed the part, you do not have to hold down the Fn key before... Sorry ' end that

    Looks like you just have to switch the toggle autour:

    Apple > System Preferences > keyboard > check ' keys all F1, F2, etc. as standard function keys

    Hope that help =)

  • How can I get the data view to display the same amount of time I save?

    I use the Sound and Vibration Measurement Suite.  In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall.  I am also showing strength in numbers group for several bands and doing cutting-edge research.  I record 100 ms of the transient wave.  In the data view, why the temporal plots show several seconds of data?  What determines how much time will appear in the data view?  More important, the power spectrum reflects the power for the entire of several seconds of data displayed?  Same question for power in the values of band and cutting-edge research.  I want to just this data displayed for 100 ms of the wave that I record.  So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?

    Finally, what is the best way to make account concisely the recorded data?  By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc..  I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care.  Help?

    Hi TimRsandiego,

    SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.

    If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:

    Let me know if you have any other questions.

    Kind regards

  • How can I get the exact time and date on my FAX LOG

    I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer.  How can I get the exact time and date on my FAX log?

    Hi FrederickFrank7,

    Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.

    I am an employee of HP.
    Please indicate the position that solved your problem as "acceptable Solution".

Maybe you are looking for