Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
PHP - PDO Only Returns One Row
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Weasel" data-source="post: 436888" data-attributes="member: 9520"><p>You're using <strong>return</strong> in your foreach loop. After using the return statement, it stops executing. Either stop all results in an array, and return the array after the foreach loop, or echo all the results instead of returning it.</p></blockquote><p></p>
[QUOTE="Weasel, post: 436888, member: 9520"] You're using [b]return[/b] in your foreach loop. After using the return statement, it stops executing. Either stop all results in an array, and return the array after the foreach loop, or echo all the results instead of returning it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
PHP - PDO Only Returns One Row
Top