|
-
Mar 26th, 2010, 12:43 PM
#1
Thread Starter
New Member
[RESOLVED] Php error help
Last edited by fiestaboy; Feb 5th, 2013 at 06:53 AM.
-
Mar 26th, 2010, 02:57 PM
#2
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)".
-
Mar 26th, 2010, 08:38 PM
#3
Thread Starter
New Member
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
-
Mar 26th, 2010, 11:18 PM
#4
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.
-
Mar 26th, 2010, 11:20 PM
#5
Thread Starter
New Member
Re: Php error help
lmao , your funny , i have only been doing html a day mate :/ , plus i have done it :P
-
Mar 27th, 2010, 12:29 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|