Home > Php Error > Php Error Unexpected T_case

Php Error Unexpected T_case

Contents

phpBB Support The Support related areas in our community forums. Modifications (3.0.x) Guides on how to use them and how to create your own. Change this line so it reads // END newsletter_subscribe mod 2/3 Cheers RodG Ozpost - The Ultimate Shipping module for Australian Merchants. Nonstopdrivel Registered User Posts: 19 Joined: Thu Jan 13, 2011 8:28 pm Contact: Top Re: Parse error: syntax error, unexpected T_CASE New postby chris.h » Thu Apr 24, 2014 3:46 pm this contact form

Advertising Information if you want to advertise on phpBB.com. It is just a little bit different but here it is: Now the error says: Parse error: syntax error, unexpected T_STRING in /home/p33n0r/public_html/piss/index.php on line 45 Line 40-50: Code: break; case TABLE_REVIEWS . " where customers_id = '" . (int)$customers_id . "'"); while (!$reviews->EOF) { $db->Execute("delete from " . You may have to register before you can post: click the register link above to proceed. http://stackoverflow.com/questions/8095707/parse-error-in-php-code-unexpected-t-case

Parse Error: Syntax Error, Unexpected 'case'

case 'one': ?>

switch found one

Should I tell potential employers I'm job searching because I'm engaged? The whole point was so that when someone selects ALL TYPES from the search page and it is posted to this page that the first case statement would be true, otherwise Click these links for its Homepage, or Download from Zen-Cart.com. Control Flow: Switch Forum View Course » View Exercise 361 points Submitted by Drew Caddens over 3 years ago Parse error: syntax error, unexpected T_CASE, expecting ':' or '{' on line

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. Php Switch Case Knowledge Base Team and user submitted ar­ticles covering support areas. Learn tips, tricks and secrets for your Zen Cart site!Sign up for our FREE Newsletter Home Forum Today's Posts Forum Rules Calendar Forum Actions MARK ALL Forums Read Quick Links Plugins FAQs https://www.codecademy.com/en/forum_questions/516ecc6c58b09b29d1006d10 Browse other questions tagged php mysql or ask your own question.

For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 9 Register Login: Remember Me? Why do jet engines smoke? Please google keywords you don't understand.

Php Switch Case

SELECT CASE $desc //THIS IS LINE 34. browse this site Why didn't Dave Lister go home? Parse Error: Syntax Error, Unexpected 'case' More resources on customising your board » Support Documentation Installation guide and the complete documentation. Please post the entire switch statement. –JSK NS Oct 16 '12 at 18:03 I think PHP is just so confused that it doesn't know where to start.

Thread: Parse error: syntax error, unexpected T_CASE in webadmin/customers.php Results 1 to 6 of 6 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Reproduce code: --------------- // Works if whitespace before "

Any ideas? What is the possible impact of dirtyc0w a.k.a. "dirty cow" bug? 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: navigate here share|improve this answer answered Nov 11 '11 at 15:03 razbakov 423518 add a comment| up vote 0 down vote The code is incorrect in so many ways.

What usually happens is that you've missed a single/double quote somewhere higher up the code, which causes the problem lower down. 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 current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

Get Involved Learn how you can get involved with the project. 3.1 New Features An overview of the new features and improvements in phpBB 3.1 (The new version of phpBB).

FAQs! Styles DB Download or submit styles to our styles database. What usually happens is that you've missed a single/double quote somewhere higher up the code, which causes the problem lower down. You may jump out of these, and a common use is to use a goto in place of a multi-level break.

Parse error: syntax error, unexpected T_CASE in /home2/ubrew/public_html/webadmin/customers.php on line 341 link 341 is: case 'deleteconfirm': This kind of error suggests that the actual problem is in one of the lines Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? Are illegal immigrants more likely to commit crimes? Most forums have them!

If you really intended to use goto, here are some things you can start doing to remove the errors. Can you move a levitating target 120 feet in a single action? Reference Sheets Code Snippets C Snippets C++ Snippets Java Snippets Visual Basic Snippets C# Snippets VB.NET Snippets ASP.NET Snippets PHP Snippets Python Snippets Ruby Snippets ColdFusion Snippets SQL Snippets Assembly Snippets International Support Find a 3rd party support site in your first language.

My website Reply With Quote 25 Sep 2014,03:26 PM #4 lukaswlu View Profile View Forum Posts View Blog Entries View Articles New Zenner Join Date Mar 2014 Location Canada Posts 31 Generating a sequence of zeros at compile time more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us Sitecore ISE powershell inconsistent results How to remove screws from old decking Why did Hanuman burn the city of Lanka? 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

share|improve this answer edited Nov 11 '11 at 17:57 Samuel Liew 32.2k2282105 answered Nov 11 '11 at 15:01 Johan Koele 133 add a comment| Not the answer you're looking for? Reply With Quote « Previous Thread | Next Thread » Similar Threads Parse error: syntax error, unexpected '{' in my custom php code By claudiapsp in forum General Questions Reply With Quote 25 Sep 2014,07:50 PM #5 lat9 View Profile View Forum Posts View Blog Entries View Articles Totally Zenned Join Date Sep 2009 Location Stuart, FL Posts 5,854 Plugin default: ?>

switch found something else

phpBB Bug Tracker Report problems with phpBB core and other sub-projects such as the Website, Customisation DB, and Team Tools here. BlueHost.com • Web Hosting UK • HostMonster • FastDomain Hosting • Advertise on phpBB.com Powered by Titania © phpBB Limited © 2000, 2002, 2003, 2007 phpBB Limited • Contact Us Hot Network Questions How can I Improve gameplay for new players, as a new player? Baking at a lower temperature than the recipe calls for Why do units (from physics) behave like numbers?

You may have meant to write: switch($desc){ case "value": // ... TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customers_id . "'"); $db->Execute("delete from " . If you can't be bothered to do the two things above I can't be bothered to answer additional questions. Donate to: DrByte directly or to the Zen Cart team as a whole Remember: Any code suggestions you see here are merely suggestions.

switch($var): ?>