Jump to content

Fred708

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by Fred708

  1. Thank you very much, got this working perfectly. You folks rock!
  2. [!--quoteo(post=352421:date=Mar 7 2006, 02:52 AM:name=HaZaRd420)--][div class=\'quotetop\']QUOTE(HaZaRd420 @ Mar 7 2006, 02:52 AM) [snapback]352421[/snapback][/div][div class=\'quotemain\'][!--quotec--] $sql=" select * from roster order by alias $sort "; $sort ="desc"; //to sort the oldest to news shows enter asc to sort from newest to oldest enter desc // [/quote] You may want to try switching desc to asc. Descending typically means from Z-A, and Ascending typically means from A-Z. I'd give that a shot, though I could be way off here.
  3. Hey. This might not be the answer you're looking for, I'm new here and inexperienced in this category as well. When looking to make things list vertical though, I use the HTML <br> tag. Though I lack the PHP skills to tell you exactly where to put it, you might know/be able to figure it out. Just another thing to try if you haven't =)
  4. Thanks for the quick reply, I appreciate it! I'm sure that's what I want to be doing (fairly sure), but I can't seem to get it right. The column I'm looking to average is item_value, which is in eqdkp_items, which is in the database eqdkp. So how correct is this? [code]$query="SELECT AVG(points) AS points FROM eqdkp_items";[/code] ? I guess I'm having trouble going from eqdkp_items to item_value, which is the one I'd like to average. Sorry, I'm clueless. Thanks again for the quick reply,
  5. Hey! This is probably a very easy question to answer, I honestly have no clue. I can work with the very basics of php and slight editing if the code is already there, but I have no clue really on how to go about this. What I'm trying to do is add all the values stored in a particular column (about 840 values atm and growing), and hopefully divide that number by the total amount. (averaging it). I can do the displaying and such on my own, I have no idea how you would actually get all those numbers to add and such. Any idea on how one could do this? Thanks for any help!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.