Split Mysql Fetch Array |
Split Mysql Fetch Array |
The-Shadow |
Oct 17 2013, 04:24 PM
Post
#1
|
Novice Group: Members Posts: 21 Joined: 20-September 13 Member No.: 19,759 |
Hey guys,
Got a new problem. I created a mod panel but know i want to show it in a table. So Username, something, something, something I'm doing this this way: $SelectInfo = mysql_query("SELECT * FROM members"); $GetRows = mysql_fetch_array or assoc($SelectInfo); Then im using the $GetRows to get the values of the database. The problem now is: i want to get like 10 rows per page. And then split it and display it in a table. But every players has its own row. So i can do this 1 by 1 but that is slowing my PHP Performance down. Is there a way to split it and display it in a table with 10 rows per page? Extra Info, i DONT Have PROBLEMS with this: Ordered by ID's. (First members gets ID(1) second gets(2) so i want to display by registerdate) PROBLEMS ARE BOLD |
Christian J |
Oct 19 2013, 04:22 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,682 Joined: 10-August 06 Member No.: 7 |
Have you solved this yet? Maybe array_chunk() can be used.
|
Lo-Fi Version | Time is now: 8th June 2024 - 01:47 AM |