Home > Php Error > Php Error Unexpected T_case

Php Error Unexpected T_case


My website Reply With Quote 27 Sep 2014,10:53 AM #6 RodG View Profile View Forum Posts View Blog Entries Visit Homepage View Articles Totally Zenned Join Date Jan 2007 Location Australia nowhere near 22 –newfurniturey Oct 16 '12 at 18:06 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote I ran into this problem with the code Why do jet engines smoke? You need either use goto or switch. this content

Sitecore ISE powershell inconsistent results How to remove screws from old decking Why did Hanuman burn the city of Lanka? Click these links for its Homepage, or Download from Zen-Cart.com. Dividing with/without using floats in C Derivatives: simplifying "d" of a number without being over "dx" Can a nuclear detonation on Moon destroy life on Earth? TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$reviews->fields['reviews_id'] . "'"); $reviews->MoveNext(); } $db->Execute("delete from " . http://stackoverflow.com/questions/8095707/parse-error-in-php-code-unexpected-t-case

Parse Error: Syntax Error, Unexpected 'case'

Reply With Quote 05-06-2007,05:42 AM #2 pete_bisby View Profile View Forum Posts Senior Member Join Date Mar 2003 Location England Posts 281 T_CASE errors are relating switch statements, and T_STRING errors Note: the use of "case default", this is incorrect. case 3: do_function_3(); break; function do_function_3(){ // put the code here } Goto docs: http://www.php.net/manual/en/control-structures.goto.php share|improve this answer answered Nov 11 '11 at 15:01 Rene Pot 16.2k34078 add a comment| up Where is this code goes from?

Didn't know anything like that existed, but now when I know I will be sure to use it Make sure that you read all answers and try them out before asking Where is "Proceed To Checkout" button is located To find the number of X completed, when can I subtract two numbers and when do I have to count? Find out more about the project » Downloads Latest Version Download the latest stable release of phpBB Update Packages Automatic Update packages for your phpBB release Language Packs Translate phpBB into Extensions DB Download or submit extensions to our extensions database.

phpBB Ideas Suggest, vote on and comment on ideas for phpBB. Php Switch Case Story about crystal flowers that stop time? case 'one': ?>

switch found one

https://www.codecademy.com/en/forum_questions/516ecc6c58b09b29d1006d10 Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?

Results 1 to 4 of 4 Thread: unexpected T_CASE error Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode more hot questions default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other asked 4 years ago viewed 5676 times active 2 years ago Related 1503How do you parse and process HTML/XML in PHP?0Parse error: syntax error, unexpected '{' in PHP?0PHP Parse error: syntax More information on support » Development Area51 phpBB Development All Development Discussion takes place at Area51.

Php Switch Case

Advertising Information if you want to advertise on phpBB.com. Here is the full coding.

Category Sub Category Part Name Part Number Dash Parse Error: Syntax Error, Unexpected 'case' Advanced Search Forum PHP Help General Help unexpected T_CASE error If this is your first visit, be sure to check out the FAQ by clicking the link above. EDIT: I just got help on this from different forums but now a new problem concerning the same script has occured.

share|improve this answer answered Nov 11 '11 at 15:19 Gustav Bertram 8,15712051 add a comment| up vote -1 down vote It's an easy fix - don't use ; use : instead. If you can't be bothered to do the two things above I can't be bothered to answer additional questions. Please use our new forums at discuss.codecademy.com. TABLE_REVIEWS . " where customers_id = '" . (int)$customers_id . "'"); } else { $db->Execute("update " .

Why didn't Dave Lister go home? This would be picked up if you use syntax highlighting; bits of code would be coloured as literal strings, and vice versa. (This is one reason why this board has [php]..[/php] The Team Find out who is responsible for all the mayhem. have a peek at these guys WHEN = ALL TYPES It isn't proper syntax, and it isn't within a string so PHP is attempting to run it, but can't.

Here is some statistics of the server: PERL version 5.8.7 PHP version 4.4.3 Apache version 1.3.37 (Unix) MySQL version 4.1.22-standard Thanks in advance! Why does a full moon seem uniformly bright from earth, shouldn't it be dimmer at the "border"? Whitespace should be acceptable between the closing php tag and the opening php tag.

Browse other questions tagged php parsing syntax-error default break or ask your own question.

TABLE_REVIEWS . " set customers_id = null where customers_id = '" . (int)$customers_id . "'"); } $db->Execute("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customers_id . "'"); Reply With Quote 25 Sep 2014,04:23 AM #2 DrByte View Profile View Forum Posts View Blog Entries Visit Homepage View And make sure that this line of code inside switch(){ } share|improve this answer answered Oct 16 '12 at 18:03 kirugan 1,1162927 How do you even know that it Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #6 thomasubc New D.I.C Head Reputation: 0 Posts: 26 Joined: 02-September 11 Re: ( ! ) Parse error:

Was This Post Helpful? 1 Back to top MultiQuote Quote + Reply #3 Dormilich 痛覚残留 Reputation: 4051 Posts: 12,580 Joined: 08-June 10 Re: ( ! ) Parse error: syntax error, To start viewing messages, select the forum that you want to visit from the selection below. General Discussion General discussion and intelligent conversations. FAQs!

case 'one': ?>), php dies with "PHP Parse error: syntax error, unexpected T_INLINE_HTML, expecting T_ENDSWITCH or T_CASE or T_DEFAULT". Reply With Quote 25 Sep 2014,12:33 PM #3 lat9 View Profile View Forum Posts View Blog Entries View Articles Totally Zenned Join Date Sep 2009 Location Stuart, FL Posts 5,854 Plugin Parse error: syntax error, unexpected T_CASE in /home2/ubrew/public_html/webadmin/customers.php on line 341 link 341 is: case 'deleteconfirm': END newsletter_subscribe mod 2/3 zen_redirect(zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $customers_id, 'NONSSL')); } else if I tried to breakdown your code on my laptop by removing what's in each case replacing them with echos and leaving just the gotos.

Have a look through the code and see if you have missed any punctuation.