Help - Search - Members - Calendar
Full Version: Split Mysql Fetch Array
HTMLHelp Forums > Programming > Databases
The-Shadow
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
Have you solved this yet? Maybe array_chunk() can be used.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.