PHP code no longer works

Hello

I got this script for centuries now and never had any problems with it. I tried it complete for a client, and would not be able to insert information in phpmyadmin.

Copy the following code just suddenly stopped working, and I've not yet interacted with him for a month now.

It was working fine, and I can't find the errors. (There should be no errors as it was working fine!)

There is more code that deals with the mail function, which works very well. All information entered into the form is sent by email with no problems. The only problem is sending this information to mysql.

The code is below:

<? PHP

ob_start();

require_once('.. /.. / Connections/djdirect.php');

Details of the customer.

$firstname = ($_POST ['firstname']);

$lastname = ($_POST ['lastname']);

$email = ($_POST ['email']);

$password = ($_POST ['password']);

$mobile = ($_POST ['mobilenumber']);

$landline = ($_POST ['landlinenumber']);

$addressline1 = ($_POST ['addressline1']);

$addressline2 = ($_POST ['addressline2']);

$addresscity = ($_POST ['addresscity']);

$addresscounty = ($_POST ['addresscounty']);

$addresspostcode = ($_POST ['addresspostcode']);

Event and details Vanue.

$nameevent = ($_POST ['nameevent']);

$date = ($_POST ['datepicker']);

$timestart = ($_POST ['timestart']);

$timeend = ($_POST ['timeend']);

$typeofvenue = ($_POST ['typeofvenue']);

$venuerestrictions = ($_POST ['venuerestrictions']);

$typeofevent = ($_POST ['typeofevent']);

$vaddressline1 = ($_POST ['vaddressline1']);

$vaddressline2 = ($_POST ['vaddressline2']);

$vaddresscity = ($_POST ['vaddresscity']);

$vaddresscounty = ($_POST ['vaddresscounty']);

$vaddresspostcode = ($_POST ['vaddresspostcode']);

$amountofguests = ($_POST ['amountofguests']);

$ageofguests = ($_POST ['ageofguests']);

Package and Addons.

$package = ($_POST ['package']);

$addon1 = ($_POST ['addon1']);

$addon2 = ($_POST ['addon2']);

$addon3 = ($_POST ['addon3']);

$addon4 = ($_POST ['addon4']);

$addon5 = ($_POST ['addon5']);

$addon6 = ($_POST ['addon6']);

$fogmachine = ($_POST ['fogmachine']);

$pricequoted = ($_POST ['pricequoted']);

$comments = ($_POST ['comments']);

$promocode = ($_POST ['promocode']);

$tandc = ($_POST ['tandc']);

$sql = "INSERT INTO customers (firstname, lastname, email, password, mobile, phone fixed, addressline1, addressline2, addresscity, addresscounty, addresspostcode, fichierID, date, timestart, timeend, typeofvenue, venuerestrictions, typeofevent, vaddressline1, vaddressline2, vaddresscity, vaddresscounty, vaddresspostcode, amountofguests, ageofguests, package addon1, addon2, addon3, addon4, addon5, addon6, fogmachine, quotes, comments, code promo, tandc) VALUES ('$firstname', '$lastname', '$email', '$password', '$mobile', '$landline', '$addressline1', '$addressline2', '$addresscity', '$addresscounty', '$addresspostcode', '$nameevent', '$date', '$timestart', '$timeend'. '$typeofvenue', '$venuerestrictions', '$typeofevent', '$vaddressline1' '$vaddressline2', '$vaddresscity', '$vaddresscounty', '$vaddresspostcode', '$amountofguests', '$ageofguests', '$package', '$addon1', '$addon2', '$addon3' '$addon4', '$addon5', '$addon6', '$fogmachine', '$pricequoted', '$comments', '$promocode', '$tandc') «;»

mysql_query ($SQL);

? >

A missing comma in red below:

'$package', '$addon1', '$addon2', '$addon3', '$addon4', '$addon5', '$addon6', '$fogmachine', '$pricequoted', '$comments', '$promocode', '$tandc')

Tags: Dreamweaver

Similar Questions

  • french accent alt key codes no longer works

    My french accent alt codes no longer work. For example, alt 0244 should give me a with a grave accent. now, he's giving at the corner of a square! I tried to restart the computer, which usually fixes these problems; that did not work.

    Hi Tygre,

    Thanks for choosing Microsoft Community!

    If I understand correctly, the French accentuate the alt key codes no longer works.

    See the following steps:

    (a) go to start, Control Panel,

    (b) click on clock, language and region

    (c) click on the region and language

    (d) select French (Canada) as your input language.

    (e) click on apply and Ok.

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

  • My dropdown code no longer works in D11.5?

    I have been using this script in an educational application with a field containing the Select word for several years using the D8 and D10. It still works in older versions of Director, but now I was forced to use 11.5 because my code doesn't work on Mac OS X 10.7 and upwards (because Rosetta has been removed). I found this code almost 10 years ago and do not really understand how it creates the drop-down list.  I edit and he did the job, but it does not come more down 11.5 . Can you please tell me how to fix this script? If you attach it to a field in D8 or D10 with the value Select, it will fall down and show the words effective and ineffective.  11.5 is no longer fall down.  Please help thanks.

    on mouseDown

    put me = the castNum of the sprite (the clickOn)

    -Preparation of the drop-down list:

    Set the dropdown list = ['effective' and 'Not_effective']

    Set temp = EMPTY

    Repeat with x in the drop-down list

    put x & RETURN after temp

    end repeat

    -Remove the end of "RETURN":

    remove the tank (length (temp)) Temp

    got me temp in the field

    -Enter in the main repeating loop:

    Set oldLine = 0

    Repeat everything in the stilldown

    If the mouseCast = me and establish the line break = the mouseLine

    of another line set = 0

    If oldLine <>new line then

    If newLine then hilite line (line break) in the box I

    else put me temp in the field

    Set oldLine = line break

    end if

    end repeat

    -Clean and close:

    If newLine then put (line (line break) to field me) in field me

    otherwise put "Select" in the field me

    If the field 'Effective' then me =

    Sprite (35) .visible = TRUE

    Sprite (36) .visible = TRUE

    Sprite (37) .visible = TRUE

    Sprite (38) .visible = 0

    Sprite (39) .visible = 0

    Sprite (69) .visible = TRUE

    Sprite (70) .visible = TRUE

    Sprite (71) .visible = 0

    Sprite (72) .visible = 0

    otherwise if the site I = "Not_effective" then

    Sprite (35) .visible = TRUE

    Sprite (36) .visible = TRUE

    Sprite (37) .visible = TRUE

    Sprite (38) .visible = TRUE

    Sprite (39) .visible = TRUE

    Sprite (69) .visible = TRUE

    Sprite (70) .visible = TRUE

    Sprite (71) .visible = TRUE

    Sprite (72) .visible = TRUE

    otherwise if the ground = me "Select" then

    Sprite (35) .visible = 0

    Sprite (36) .visible = 0

    Sprite (37) .visible = 0

    Sprite (38) .visible = 0

    Sprite (39) .visible = 0

    Sprite (69) .visible = 0

    Sprite (70) .visible = 0

    Sprite (71) .visible = 0

    Sprite (72) .visible = 0

    end if

    end mouseDown

    If you add a "updateStage" at the end of the loop to repeat this should work again.

    Repeat everything in the stilldown

    If the mouseCast = me and establish the line break = the mouseLine

    of another line set = 0

    If oldLine <> new line then

    If newLine then hilite line (line break) in the box I

    else put me temp in the field

    Set oldLine = line break

    end if

    updateStage-* add HERE the STEPS UPDATE *.

    end repeat

  • SWIFT code no longer works

    Hello

    I am an OS X application in Swift and I am having some problems. I have a code in my project that has worked before, but it does not work now. It's even give me an error. I just doesn't work at all, point. The code has worked before, so I don't know why it does not work now. Any suggestions?

    I'm under Xcode 7.3.1 on a 2015 11 - inch MacBook Air, which is OS x 10.11.5.

    Hello NathanaelC16,

    You will need to provide more information than that. SWIFT is under active development. There is no guarantee of compatibility between versions. If you install an OS or Xcode update, you will need to do a "thorough cleaning" your problem and all rebuild.

  • Activation of Smartphone blackBerry for QuickLaunch code no longer works

    I had to pass the rounds about 3 times in the last two weeks with VZW due to problems of material with the phones.  Today, I had to get support to fix the My World because of the PIN login an overrun.

    Now when I connect and I see my purchased app I don't then turn due to having an invalid activation code. When I contacted the support to code, I was told to open a ticket with RIM for this.

    Well, when I try to open a ticket I get invalid PIN during the presentation of the ticket.

    Hello!

    There are some problems with the pines rejected on the forms currently - mine has recently been corrected, so don't feel like you're singled out. To remedy this, there is a special procedure that RIM has allowed us to provide... but may not be posted in these public forums. Therefore, please check your private Messages on this site for a PM from me with instructions on how you need to proceed.

    Sorry for the trouble, but RIM assures us that they are working.

    See you soon!

  • This option button who worked, the code no longer works?

    Hello

    I had a forum until a few months ago and got help to get option buttons to work with a button continue, causing Stop on a specific frame in the sequence. (All done it on the main timeline).

    Everything worked fine, now I keep trying it again, but regardless of which button I click, it only goes to the frame 2 where the Novice option button is supposed to go.

    I think the problem is in the line of code that reads:

    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    I know he is set to only go to the area of novice, but my understanding is that since it was radio button, any click button would work, and only, I needed to type in one of the unique instance names.

    Here is the code:

    Stop();

    continueButton.enabled = false

    noviceButton.addEventListener (MouseEvent.CLICK, revealContinue);

    intermediateButton.addEventListener (MouseEvent.CLICK, revealContinue);

    expertButton.addEventListener (MouseEvent.CLICK, revealContinue);

    function revealContinue (evt) {}

    continueButton.enabled = true;

    }

    continueButton.addEventListener (MouseEvent.CLICK, clickContinue);
    function clickContinue (evt) {}
    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    Stop (frameNumber);
    }

    Is there a better way to write this code so that you click any button on the radio, then press on continue, goes in and stops as appropriate frame?

    Thank you

    Babs

    Should I say turn off instead of hide... continueButton.enabled = false

    Based on the output window that appears, but nothing show, I have a moment difficult to conclude what could be bad, except that the radio buttons would need to have empty spaces assigned as their value parameters.  If they have no value I expect to see a null value appear in the output panel.

  • My code no longer works

    I just bought Adobe Creative cloud. I had to fill out some information and activate the code, and then he asked me to fill in my credit card information. I timed it OK but it was a mistake... I tried to go back by clicking the go back button... Now, my code is already activated, but installation is not complete... How I continuous by activating the code?

    Sjuuffx,

    Are you sure you are using correct Adobe Id for access to Creative Cloud., please disconnect the creative cloud and log. Try the following steps as well.

    1. https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    2. https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html
  • AS3 code no longer works

    Hello

    I placed this code on the first frame of the main timeline:

    function setupEvents() {}
    Associate events with event handlers
    FullScrn_Btn.addEventListener (MouseEvent.CLICK, clickFullScrn);
    }

    function clickFullScrn(e:MouseEvent):void {}
    trace (stage.displayState);       / / trace reports the NULL value, why?
    {if(stage.displayState=="fullscreen")}
    stage.displayState = "normal";
    trace ("back to normal");
    } else {}
    stage.displayState = "fullScreen";
    trace ("mode full screen");
    }
    }

    setupEvents();

    You can only test full screen in a file of projector or the browser window.

  • TextInputProperties.onSubmitted no longer works on Mac OS 10.2

    I came across a strange problem like code in one of my apps stopped working on Mac OS 10.2 but works without problem on OS 10.0 and 10.1. I'm just trying to catch when the user presses ENTER in a TextField:

        TextField {
            id: myTextField
            horizontalAlignment: HorizontalAlignment.Left
            verticalAlignment: VerticalAlignment.Center
            input {
                submitKey: SubmitKey.Default
    
                onSubmitted: {
                    //code here....
                }
    
                flags: TextInputFlag.AutoCapitalization
            }
        }
    

    For some strange reason, this piece of code no longer works on Mac OS 10.2 (Z30) and events onSubmitted never gets fired. Anyone has an idea why this might happen?

    Interestingly, changing to

    submitKey: SubmitKey.DONE
    

    did onSumbitted get fired again. Ideally, I want to keep the default value of virtual keyboard look if possible and do not overwrite it with "DONE" just to make things work.

    Hi bbdevguy,

    From 10.2, onSubmitted signal fires events only when the button send text is set to 'Submit' or obviously "done." Prior to version 10.2, the signal "onSubmitted events" would have also fired on an ordinary 'Enter' (default), but it's supposed to do more fires on default, i.e. is not a bug.

    To this, to the property line of submitKey to SubmitKey.Submit of luck

    submitKey: SubmitKey.Submit
    
  • Got my restored mac and redemption of the University Code does not work

    I got my mac restores and lost all my programs creative cloud, I reinstalled the but have only a trial version and my redemption of the University code no longer works as it has already been used once, how do I access my code to be able to download and use my creative programs Cloud

    Please contact your University for the new code, once you have a code then visit https://creative.adobe.com/redeem activate the subscription again.

    ^ Ani

  • my copy of CS4 is not allowing me to open it, whenever I have it try state that the license is no longer works and gives an error code: 6. this problem occurs on my laptop works fine my office copy [from the same CD, etc.]

    my copy of CS4 is not allowing me to open it, whenever I have it try state that the license is no longer works and gives an error code: 6. this problem occurs on my laptop works fine my office copy [from the same CD, etc.]

    Exit code: 6, Exit Code: 7 Installation error - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    The problems with the Setup logs. CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for more information on how to review your Setup logs

  • CS4 for Mac gives me this message: "license for this product has stopped working. 150:30 error code. Subsequently no longer works. How to operate?

    CS4 for Mac gives me this message: "license for this product has stopped working. 150:30 error code. Subsequently no longer works. How to operate?

    Please see this link for solutions to this message:

    Error "Licensing has stopped working". Mac OS

    Kind regards

    Guinot

  • I can't find my code redemption cs6 and I just bought a new computer because my old one no longer works. How can I get my photoshop on this computer? All my products are registerd with a serial number

    I can't find my code redemption cs6 and I just bought a new computer because my old one no longer works. How can I get my photoshop on this computer? All my products are registerd with a serial number

    For CS and CS2 activation servers stopped working and have been taken down. You will need to take a look at this link for your question: https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml

    Benjamin

  • Third party contact form widget no longer works with the update - PHP errors

    PHP seems to be even more screwed up with the last update/upgrade to Muse.  The previous update has started producing the following error message when I transferred my site via FTP:

    'Impossible 1 WARNING - connection to a PHP file. Failed to check if the web server supports PHP required by forms of the Muse. Remember the domain name entered in the dialog FTP download is correct. »

    However, everything worked, and by participating in some queries here, it seemed like a curiosity about something serious (stuff still worked but an error message popped up for no discernable reason)

    Since the last update, however, widgets that I have two different companies for the purpose of emailing me through the Web site, send messages, etc., are no longer works and the following message appears to hit 'submit '.

    "PHP script form is missing from web server or PHP is not properly configured on your web hosting provider. Check if the form PHP script has been downloaded correctly, contact your host about the configuration of PHP. »


    By checking with my web host, I was told

    « le page seems to use the script form - u31652.php that exists on the

    Server.

    Unfortunately, this error is not accurate enough to guide us in the right

    direction. PHP works on the server. However, looking at the

    Apache error logs web server I see the contact form appears to be

    looking for a file that does not exist.


    Just shoot this question, you want to work with Muse to determine

    Why coding sites is looking for the file

    / usr/home/NAME/public_html / WEBSITE.com/null ."


    Any ideas what this means and how to fix it would be great. I tried to re - download the whole site, thinking that maybe something was not being downloaded via "Only changed" but it is always the case


    Thank you!


    Please install the last update and check the configuration of PHP on your host for verification and then to test the workflow.

    Thank you

    Sanjit

  • Just upgraded to the new version and now adjust no longer works, what is the solution?

    After the upgrade to a newer version the shrink to fix the width of the screen no longer works. What is the solution?

    Code changes for the HiDPI landed in Firefox 22 and later (bug #844604).

    You can change the layout.css.devPixelsPerPx and increase or decrease the value of 0.1 or 0.05 as follows to adjust the size of fonts and other elements in Firefox.

    • The layout.css.devPixelsPerPx pref is a string parsed in float value and allows you to adjust the dimensions of all elements (user interface and web pages) specifically (resolution 0.1 or 0.05).
    • You can use values between 0.05 and 1.0 to reduce the size of the elements or use a value greater than 1.0 to grow and enlarge the elements (percentage divided by DPI, % / DPI).

    If the web pages must be adjusted after changing this pref so you can watch Default FullZoom Level or NoSquint.

    Also see this MozillaZine forum thread: 22 FX makes look all too big night?

Maybe you are looking for