Placing and array within an array then sorting it!


Posted on 16th Feb 2014 07:03 pm by admin

I have a page that runs two large mysql queries and saves the results into arrays, in php I then perform a simple multiplication between the two arrays and the results is displayed in a dynamic html table.

However, what I need to do is rather than display this in a table I need it saved in another array that can then be sorted in different ways and limit the table to the top 40 results.

Can anyone point me in the right direction?

No comments posted yet

Your Answer:

Login to answer
281 Like 28 Dislike
Previous forums Next forums
Other forums

Upload Code Help
Hi everyone I need some help with a bit of code ive been working with for a while. I am completely s

Curly Bracket Delimeters.
I'd always believed that the starting and ending delimeters in preg_ functions had to be the same ch

PHP form help required
Hi all! Apologies in advance for having to message the forum for help. I know you must get a lot of

Return X values where an ID number doesnt matter
Well as for subject heading, thats the best i could think of.

Currently im having a problem w

Is there a way to override built in php functions without APD?
I am trying to use the
rename_function()
override_function()
options that are built into

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

How do I replace any number of character occurences with one occurrence?
How do I replace any number of character occurences with one occurrence?

Let's say I have:

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash