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);?>
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(); ?>
© Copyright 2019|winbytes.org.