Home > Parse Error > Parse Error Syntax Error Unexpected T_case

Parse Error Syntax Error Unexpected T_case

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 Windows is missing in GRUB! According to the manual: You also cannot jump into any sort of loop or switch structure. 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 have a peek here

Change this line so it reads // END newsletter_subscribe mod 2/3 Cheers RodG Ozpost - The Ultimate Shipping module for Australian Merchants. 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] Advertising Information if you want to advertise on phpBB.com. Being pretty much a newbie at PHP I thought I'd post the entire script here to see if someone else can catch my foolish mistake. https://www.codecademy.com/en/forum_questions/516ecc6c58b09b29d1006d10

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 Reply With Quote 05-06-2007,07:13 AM #3 Weedpacket View Profile View Forum Posts Pedantic Curmudgeon Join Date Aug 2002 Location General Contact Unit "Coping Mechanism" Posts 22,322 Originally Posted by pete_bisby The Demo Give phpBB a try with a fully-featured demo board. Click these links for its Homepage, or Download from Zen-Cart.com.

Most forums have them! TEXT_INFO_BEST_THROUGH_HTTPS); $contents[] = array('text' => '
' . Moving the mChat MOD code block inside the bracket solved the problem.The Users and Groups tab of the ACP works perfectly again.Thanks for an excellent MOD providing a functionality I had break; } Or you are attempting to create a query for SQL.

Why do units (from physics) behave like numbers? Course Forum Section 1 Exercise 1.6 Parse error: syntax error, unexpected T_CASE, e... DIR_FS_BACKUP . $backup_file); unlink(DIR_FS_BACKUP . $backup_file); $backup_file .= '.zip'; } http://stackoverflow.com/questions/12920719/php-parse-error-syntax-error-unexpected-t-default 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

Just started to use NetBeans. TABLE_CONFIGURATION . " where configuration_key = 'DB_LAST_RESTORE'"); tep_db_query("insert into " . DIR_FS_BACKUP . $backup_file . '.zip ' . tep_image(DIR_WS_ICONS . 'file_download.gif', ICON_FILE_DOWNLOAD) . ' ' . $entry; ?>

tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'restore': $heading[] = array('text' => '' . $buInfo->date . ''); $contents[] = array('text' => http://board.phpbuilder.com/showthread.php?10338969-unexpected-T_CASE-error Sorry for my lack of knowledge. The line number reported in the error isn't necessarily where the error is. OK, here is the whole thing.

asked 4 years ago viewed 4871 times active 4 years ago Related 2787How can I prevent SQL injection in PHP?530What is the best collation to use for MySQL with PHP?1502How do navigate here DIR_FS_BACKUP . $backup_file); $backup_file .= '.gz'; break; case 'zip': TABLE_CUSTOMERS . " where customers_id = '" . (int)$customers_id . "'"); $db->Execute("delete from " . TEXT_INFO_DOWNLOAD_ONLY . '*

*' .

TEXT_INFO_DATE . ' ' . $buInfo->date); $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size); $contents[] = array('text' => '
' . Rank Checker Cookie Search Site Search Engine Marketplace Sites Domains Plugins/Add-ons Scripts Templates/Styles Graphic Designs eBooks Articles Advertising Buy Ad Space Sell Ad Space On Your Sites Advertise on digitalpoint.com Members What he said. http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-case-phpbb.php TEXT_INFO_USE_ZIP); if ($dir_ok == true) { $contents[] = array('text' => '
' .

Hot Network Questions AAA+BBB+CCC+DDD=ABCD N(e(s(t))) a string Should I tell potential employers I'm job searching because I'm engaged? DB_DATABASE . '-' . That won't work.

Hence the fix isn't simple.

Remove case after each "case" declaration replacing them with something like a: // do stuff In each goto remove the case and do goto a; share|improve this answer answered Nov 11 STORE_OWNER . "\n" . '#' . "\n" . '# Database: ' . 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 When I modified the acp_users.php file, I accidentally pasted the mChat MOD code outside the right bracket directly above the Code: Select all// Assign general variablesline.

phpBB Discussion Discussions on all things phpBB: features, future, etc. I'm not going to hold your hand and write the code for you - ain't nobody got time for that! Please check whether you entered the correct URL or not.'; break; } break; } break; case 'resource': echo 'Resource Error: '; switch ($data['type']) { case 'file_size': $message = 'The file your http://back2cloud.com/parse-error/parse-error-syntax-error-unexpected-t-case-wordpress.php You need either use goto or switch.

WHEN = ALL TYPES THEN $output = mysql_query("SELECT * FROM {$table} WHERE Part_Name LIKE '$notes%' AND Sub_Category LIKE '$subcats%' AND Category LIKE '$cats%' AND Description = 1"); ELSE $output = mysql_query("SELECT TEXT_INFO_HEADING_RESTORE_LOCAL . ''); $contents = array('form' => tep_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '

' . share|improve this answer answered Oct 16 '12 at 18:10 AMC 27162458 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Interviewee offered code samples from current employer -- should I accept?