Home > syntax error > php endforeach parse error

Php Endforeach Parse Error

Contents

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 syntax error, unexpected 'endforeach' (t_endforeach) laravel this site About Us Learn more about Stack Overflow the company Business

Syntax Error, Unexpected 'endforeach' Laravel

Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask invalid argument supplied for foreach() 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

Foreach Php

PHP syntax error, unexpected '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 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 sho

Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. [SOLVED] Parse error: syntax error, unexpected T_ENDFOREACH Started by GsXtAsY, Jul 31 2008 06:42 PM Please log in to reply 4 replies to this topic #1 GsXtAsY GsXtAsY Advanced Member Members 35 posts Posted 31 July 2008 - 06:42 PM I am getting this Parse error: syntax error, unexpected T_ENDFOREACH error and it says its on the following line: This http://stackoverflow.com/questions/20919202/php-syntax-error-unexpected-endforeach-t-endforeach is on line 267 the endforeach; very close to the bottom of all this code....any ideas? ____________________________________________ checkLogin ( 1 ); $active_users = $login->db->RecordCount ( "SELECT ID FROM `" . DBPREFIX . "users` WHERE `Active` = 1" ); $inactive_users = $login->db->RecordCount ( "SELECT ID FROM `" . DBPREFIX . "users` WHERE `Active` = 0" https://forums.phpfreaks.com/topic/117594-solved-parse-error-syntax-error-unexpected-t-endforeach/ ); $suspended_users = $login->db->RecordCount ( "SELECT ID FROM `" . DBPREFIX . "users` WHERE `Active` = 2" ); $which_users = ( $login->functions->numeric ( @$_GET [ 'active' ] ) ) ? $_GET['active'] : '1'; $pagination = new Pagination(); $pagination->start = ( @$_GET['start'] ) ? $_GET['start'] : '0'; $pagination->limit = ( @$_GET['limit'] ) ? $_GET['limit'] : '50'; $pagination->filePath = APPLICATION_URL . 'admin/admin.php'; $pagination->select_what = '*'; $pagination->the_table = '`' . DBPREFIX . 'users`'; $pagination->add_query = ' WHERE `Active` = ' . $login->db->qstr ( $which_users ); if ( isset ( $_GET [ 'group' ] ) ) { $group = $_GET [ 'group' ]; $pagination->add_query .= ' AND `Level_access` = ' . $login->db->qstr ( $group ); $pagination->otherParams = '&group=' . $group; } $pagination->add_query .= ' ORDER BY `ID` DESC'; $pagination->otherParams = '&active=' . $which_users; $query = $pagination->getQuery ( TRUE ); $paginate = $pagination->paginate(); ?> <?= $login->design->get_page_title ( 'admin' ) ?> design->get_page_css () ?> design->get_page_js ( 'admin' ) ?>

 

© Copyright 2019|winbytes.org.