Home > Syntax Error > Php Syntax Error Unexpected T_case

Php Syntax Error Unexpected T_case

Contents

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 Reproduce code: --------------- // Works if whitespace before "check my blog

tep_href_link(FILENAME_BACKUP) . '">' . Not the answer you're looking for? What is the possible impact of dirtyc0w a.k.a. "dirty cow" bug? asked 4 years ago viewed 4871 times active 4 years ago Visit Chat Related 2787How can I prevent SQL injection in PHP?530What is the best collation to use for MySQL with http://stackoverflow.com/questions/8095707/parse-error-in-php-code-unexpected-t-case

Parse Error: Syntax Error, Unexpected 'case'

DIR_FS_BACKUP . $backup_file); unlink(DIR_FS_BACKUP . $backup_file); $backup_file .= '.zip'; } In it you will find Extensions (for 3.1.x), MODs (for 3.0.x), Styles, Language Packs, BBCodes, as well as various tools. What usually happens is that you've missed a single/double quote somewhere higher up the code, which causes the problem lower down. Originally Posted by lukaswlu 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 ($error == true) { $cInfo = new objectInfo($_POST); $processed = true; }

Make whatever corrections are necessary. . tep_draw_checkbox_field('download', 'yes') . ' ' . implode(', ', $table_list) . ') values ('; reset($table_list); while (list(,$i) = each($table_list)) { If so, the fix is simple.

Please re-enable javascript to access full functionality. 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 Nonstopdrivel » Mon Jul 25, 2011 10:35 pm EDIT: I just got help on this from different forums but now a new problem concerning the same script has occured. https://www.codecademy.com/en/forum_questions/516ecc6c58b09b29d1006d10 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

TEXT_INFO_DATE . ' ' . $buInfo->date); $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size); $contents[] = array('text' => '
' . DB_SERVER . "\n" . '#' . "\n" . '# Backup Date: ' . IRC Support Old school? tep_image_button('button_delete.gif', IMAGE_DELETE) . ''); $contents[] = array('text' => '
' .

Php Switch Case

Username Password I've forgotten my password Remember me This is not recommended for shared computers Sign in anonymously Don't add me to the active users list Privacy Policy phpBB • Free Back to top #3 Function Function Member Members 19 posts Posted 28 January 2012 - 07:55 PM the keyword "case" is used in a switch statement. Parse Error: Syntax Error, Unexpected 'case' tep_draw_file_field('sql_file')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE); $contents[] = array('align' => 'center', 'text' => '
' . OK, here is the whole thing.

Zen Cart - putting the dream of business ownership within reach of anyone! click site Please use our new forums at discuss.codecademy.com. Change this line so it reads // END newsletter_subscribe mod 2/3 Cheers RodG Ozpost - The Ultimate Shipping module for Australian Merchants. Knowledge Base Team and user submitted ar­ticles covering support areas.

To start viewing messages, select the forum that you want to visit from the selection below. tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'restorelocal': $heading[] = array('text' => '' . Course Forum Section 1 Exercise 1.6 Parse error: syntax error, unexpected T_CASE, e... http://setiweb.org/syntax-error/php-syntax-error-unexpected-t-else.php 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

That's sick, Aaron. –JJJ Nov 11 '11 at 14:57 2 I don't believe you can use goto and case together like that... –BoltClock♦ Nov 11 '11 at 14:57 1 Is this alternate history plausible? (Hard Sci-Fi, Realistic History) Where's the 0xBEEF? tep_redirect(tep_href_link(FILENAME_BACKUP)); break; case 'restorenow': case 'restorelocalnow': tep_set_time_limit(0); if ($action == 'restorenow') {

Do these physical parameters seem plausible?

Hence the fix isn't simple. TEXT_INFO_UNPACK : ''), 35, ' ')); $contents[] = array('align' => 'center', 'text' => '
' . If you want to do this things in the way you architect you need to use loop there. http://setiweb.org/syntax-error/php-syntax-error-unexpected-end.php Browse other questions tagged php mysql or ask your own question.