unexpected T_STRING

icechel

Новичок
unexpected T_STRING

привет всем

Скрипт выдает
Parse error: parse error, unexpected T_STRING in ....script.php on line 26

script.php :
PHP:
1: switch ($action) {
...............................
26:    case "some_action" :
          ......
         break;
   }
Что это значит ?
 

CrazyHacKeRs

Guest
см. скрипт чуточку по-выше...

обычно бывает когда забываешь поставть $ перед именем переменной
 

icechel

Новичок
В том-то и дело, что вчера еще все работало. А сегодня ошибку дает, хотя скрипт не правился.
 

icechel

Новичок
Весь код не имеет смысла.
Так как он достаточно большой.
 

icechel

Новичок
PHP:
<?
if (isset($action)) {
	switch ($action) {
		case "list_stat_order_goods" :
			if (isset($_GET['day_b'])) {
				$_SESSION['stat_order']['day_b'] 				= $_GET['day_b'];
				$_SESSION['stat_order']['month_b'] 			= $_GET['month_b'];
				$_SESSION['stat_order']['year_b'] 			= $_GET['year_b'];
				$_SESSION['stat_order']['day_e'] 				= $_GET['day_e'];
				$_SESSION['stat_order']['month_e'] 			= $_GET['month_e'];
				$_SESSION['stat_order']['year_e'] 			= $_GET['year_e'];
				$_SESSION['stat_order']['id_status'] 		= $_GET['id_status'];
				$_SESSION['stat_order']['id_supplier'] 	= $_GET['id_supplier'];
				$_SESSION['stat_order']['id_manager'] 	= $_GET['id_manager'];
				$_SESSION['stat_order']['search_str'] 	= $_GET['search_str'];
				$_SESSION['stat_order']['id_output'] 		= $_GET['id_output'];
				header("Location: ./?action=list_stat_order_goods);
				exit;
			}
			if ($_SESSION['stat_order']['id_output'] == 1) {
				List_Stat_Order_Goods_Csv($db, $_SESSION['stat_order']);
			}
			break;

26:		case "list_stat_order_goods_complect" :
			if (isset($day_b)) {
				$_SESSION['stat_order']['day_b'] 			= $day_b;
				$_SESSION['stat_order']['month_b'] 		= $month_b;
				$_SESSION['stat_order']['year_b'] 		= $year_b;
				$_SESSION['stat_order']['day_e'] 			= $day_e;
				$_SESSION['stat_order']['month_e'] 		= $month_e;
				$_SESSION['stat_order']['year_e'] 		= $year_e;
				$_SESSION['stat_order']['id_output'] 	= $id_output;
				header("Location: ./?action=list_stat_order_goods_complect");
				exit;
			}
/*
			switch ($_SESSION['stat_order']['id_output']) {
				case "1" :
					List_Stat_Order_Goods_Complect_Csv($db, $db_brand, $db_group, $db_group2, $_SESSION['stat_order']);
					break;
			}
*/
			break;

		case "list_stat_order_payment" :
			if (isset($day_b)) {
				$_SESSION['stat_order']['day_b'] 			= $day_b;
				$_SESSION['stat_order']['month_b'] 		= $month_b;
				$_SESSION['stat_order']['year_b'] 		= $year_b;
				$_SESSION['stat_order']['day_e'] 			= $day_e;
				$_SESSION['stat_order']['month_e'] 		= $month_e;
				$_SESSION['stat_order']['year_e'] 		= $year_e;
				$_SESSION['stat_order']['id_payment'] = $id_payment;
				header("Location: ./?action=list_stat_order_payment");
				exit;
			}			
			break;
	}
}
 

tony2001

TeaM PHPClub
замечаешь после какого места подсветка полетела?
header("Location: ./?action=list_stat_order_goods); <----
 

icechel

Новичок
Дык ить стоит aditor
правда там со стринами проблемы бывают.
 
Сверху