Parse Error Endforeach
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about syntax error, unexpected 'endforeach' (t_endforeach) laravel Stack Overflow the company Business Learn more about hiring developers or posting ads with
Syntax Error, Unexpected 'endforeach' Laravel
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a invalid argument supplied for foreach() community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP syntax error, unexpected 'endforeach' (T_ENDFOREACH) up vote 1 down vote favorite What's wrong with foreach php my code result() AS $row);?>
Qid?> | title?> | date?> |
Error message : syntax error, unexpected 'endforeach' (T_ENDFOREACH) using Codeigniter php codeigniter share|improve this question edited Jan 4 '14 at 9:36 Sameer 1,1221027 asked Jan 4 '14 at 9:28 user67036 616 5 don't confuse ; with : –Mark Baker Jan 4 '14 at 9:34 Please make sure your model return data or FALSE also before every foreach make sure that there is any valid data to iterate. (if (empty($data)) ...) –Kyslik Jan 4 '14 at 11:29 thanks my bad :) –user67036 Jan 4 '14 at 14:06 add a comment| 3 Answers 3 active oldest votes up vote 9 down vote accepted change your code : result() AS $row): ?> change ; to : OR you can use this : result() AS $row){ ?>
Qid?> | title?> | date?> |
share|improve this answer edited Jan 4 '14 at 9:37 Sameer 1,1221027 answered Jan 4 '14 at 9:29 Harshal Mahajan 2,04631744 Thank you very much :) –user67036 Jan 4 '14 at 14:06 you are welcome..if you find the answer suitable than you can accept it. –Harshal Mahajan Jan 4 '14 at 14:07 add a comment| up vote 5 down vote You should use : instead of ; result() AS $row):?> --------^ .... share|improve this answer answered Jan 4 '14 at 9:30 Krish R 16.4k42147 add a comment| up vote 2 down vote You are having two errors in your code, with foreach lo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP syntax error, unexpected http://stackoverflow.com/questions/20919202/php-syntax-error-unexpected-endforeach-t-endforeach 'endforeach' (T_ENDFOREACH) up vote 1 down vote favorite What's wrong with my code result() AS $row);?>
Qid?> | title?> | date?> |
Error message : syntax error, unexpected 'endforeach' (T_ENDFOREACH) using Codeigniter php codeigniter share|improve this question edited Jan 4 '14 at 9:36 Sameer 1,1221027 asked Jan 4 '14 at 9:28 user67036 616
http://stackoverflow.com/questions/20919202/php-syntax-error-unexpected-endforeach-t-endforeach/20919212 5 don't confuse ; with : –Mark Baker Jan 4 '14 at 9:34 Please make sure your model return data or FALSE also before every foreach make sure that there is any valid data to iterate. (if (empty($data)) ...) –Kyslik Jan 4 '14 at 11:29 thanks my bad :) –user67036 Jan 4 '14 at 14:06 add a comment| 3 Answers 3 active oldest votes up vote 9 down vote accepted change your code : result() AS $row): ?> change ; to : OR you can use this : result() AS $row){ ?>
Qid?> | title?> | date?> |
share|improve this answer edited Jan 4 '14 at 9:37 Sameer 1,1221027 answered Jan 4 '14 at 9:29 Harshal Mahajan 2,04631744 Thank you very much :) –user67036 Jan 4 '14 at 14:06 you are welcome..if you find the answer suitable than you can accept it. –Harshal Mahajan Jan 4 '14 at 14:07 add a comment| up vote 5 down vote You should use : instead of ; result() AS $row):?> --------^ ....
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Better Views https://www.drupal.org/node/1852114 TablesIssues syntax error, unexpected T_ENDFOREACH Closed (fixed)Project:Better Views TablesComponent:CodePriority:NormalCategory:Bug reportAssigned:UnassignedReporter:marcokaCreated:November 27, 2012 - 18:30Updated:February 7, 2013 - 19:04 Log in or register to update this issue Jump to:Most recent attachment [27-Nov-2012 19:27:02] PHP Parse error: syntax error, unexpected T_ENDFOREACH in /mnt/www/WORKSPACE_DRUPAL/EIGENE_PROJEKTE/test/sites/all/modules/custom/better_views_tables/views-view-bvt-tables.tpl.php on line 34 there is an endif missing. ORIGINAL
$label): ?> > | |
FIXED
$label): ?> > | |
Files: CommentFileSizeAuthor #2 SyntaxError-1852114-1.patch588 bytesjerodfritz Comments Comment #1 marcoka CreditAttribution: marcoka commented November 27, 2012 at 8:30pm second i would change one time used to