![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2008
Posts: 4
Rep Power: 0
![]() |
Hello for all. i try to write a php forum. in one of my php files when i execut him a teke a syntax error "syntax error, unexpected '}' in". can any body help me?
the cod is: php Syntax (Toggle Plain Text)
Last edited by big_k105; May 30th, 2008 at 8:02 AM. Reason: formatting and code tags |
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
Re: php error
Here's a tip: format your code, and post it inside [code] and [/code] tags. If you have a decent coding style (i.e. easily readable; I like to use BSD/Allman style), it should be almost immediately apparent where the missing brace is.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#3 |
|
PFO Founder
![]() ![]() |
Re: php error
While I was formatting your code and adding the code tags I noticed you have an extra { in the code. Take a look at what is now line 60 in the code above. It helps when the code is formatted as you can then see that all of then { } have a beginning and an end.
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP script ending prematurely causing Internal Error...??? | Syntax_Error | PHP | 2 | Feb 29th, 2008 8:42 PM |
| Basic Socket Programming Error in Linux.. Pls help | boraciner | C++ | 18 | Sep 12th, 2007 1:17 AM |
| C# corruption!!! | Kilo | C++ | 32 | May 21st, 2006 8:44 PM |
| Masm | rsnd | Assembly | 4 | May 20th, 2006 9:05 PM |
| libraries | matko | C | 1 | Jan 22nd, 2006 2:12 PM |