Results 1 to 6 of 6

Thread: [RESOLVED] Php error help

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Resolved [RESOLVED] Php error help

    Hhhhhhh
    Last edited by fiestaboy; Feb 5th, 2013 at 06:53 AM.

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: Php error help

    You have numerous syntax errors - when you try to run this page, PHP should spit out a description of the problem, and what line it occurs on. Do you have error reporting completely disabled?...

    1. $_POST["submit"} should have a square bracket, not curly
    2. In this line...
    Code:
    if ($name$$$lastname$$$location$$$email$$$website$$$mobile)
    ...I can only assume the "$$" between variables are supposed to be "&&".
    3. "else" needs an opening curly brace after it.
    4. mysql)select_db should be mysql_select_db
    5. Your string in die() is being terminated early; escape the quote, and end the string properly with a quote.
    6. A closing curly brace should come after the die() line; you never closed the if statement that began with "if ($submit)".

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Re: Php error help

    yea i relized that once i had a good look throught the code , i was ruashing it because had not alot of time , i have edited it but still no luch im going to have another go at it

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Php error help

    die or exit are spaghetti constructs which shouldn't ever be used except for debugging. Also, that is reasonably close to being some of the worst HTML I have ever seen. I cannot think of anything to say which will help much more than to suggest you invest some time in basic HTML and PHP tutorials.

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Re: Php error help

    lmao , your funny , i have only been doing html a day mate :/ , plus i have done it :P

  6. #6
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: [RESOLVED] Php error help

    to go with what has already been said, you code is terrible. There is really no way to just debug your code in the state it is in. Fix all the syntax errors you have made... The errors you made are stupid errors that can be avoided easily just by reading over your code.

    If you have only been coding for a day, and your code doesnt work, why are you posting on a forum? Thats like buying a car with no driving experience, crashing it, then taking it to the dealer and saying the car was defective... The car isnt defective, you just dont know how to use it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width