need help with sorting results

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
IvanMilanov
Forum Newbie
Posts: 1
Joined: Mon Aug 23, 2010 3:29 am

need help with sorting results

Post by IvanMilanov »

Hi all :)

I am using the asort function in one of my codes, but the thing is, that I need more variables in the result table at the end of the script. In other words I have this:
some variables
$var1, $var2, $var3... all these variables have numbers... let say var1="No result", var2=54, var3=11.5.
also, I have table that is with 4 columns. In the first, there is image, in the second - one of the variables, in the third - variable/2, and in the last - image-button. I want this table to have different image/results/button for each one of the results. I've tried with asort, but it works only with 2 elements, not with 4 :( Also... if there's text result - like "no result" it places it at the begining of the table, but I want to place it in the last place. If anyone got idea for that, i'll be very happy to share it... even if you don't explain it and just send me a link to tutorial or something similar :)
Post Reply